summaryrefslogtreecommitdiffstats
path: root/module/web/static/js/app.js
diff options
context:
space:
mode:
Diffstat (limited to 'module/web/static/js/app.js')
-rw-r--r--module/web/static/js/app.js10
1 files changed, 7 insertions, 3 deletions
diff --git a/module/web/static/js/app.js b/module/web/static/js/app.js
index b081022af..59ad04fc9 100644
--- a/module/web/static/js/app.js
+++ b/module/web/static/js/app.js
@@ -28,10 +28,14 @@ define([
// Add Global Helper functions
_.extend(Application.prototype, Backbone.Events, {
- restartFailed: function(pids, options) {
+ apiCall: function(method, args, options) {
options || (options = {});
- options.url = 'api/restartFailed';
- $.ajax(options);
+
+
+ },
+
+ openWebSocket: function(path) {
+ return new WebSocket(window.wsAddress.replace('%s', window.location.hostname) + path);
}
});