aboutsummaryrefslogtreecommitdiffstats
path: root/web/src/js/actions.js
diff options
context:
space:
mode:
Diffstat (limited to 'web/src/js/actions.js')
-rw-r--r--web/src/js/actions.js18
1 files changed, 10 insertions, 8 deletions
diff --git a/web/src/js/actions.js b/web/src/js/actions.js
index 4c62e9e2..ea86c8f3 100644
--- a/web/src/js/actions.js
+++ b/web/src/js/actions.js
@@ -1,3 +1,5 @@
+var $ = require("jquery");
+
var ActionTypes = {
// Connection
CONNECTION_OPEN: "connection_open",
@@ -38,7 +40,7 @@ var ConnectionActions = {
var SettingsActions = {
update: function (settings) {
- jQuery.ajax({
+ $.ajax({
type: "PUT",
url: "/settings",
data: settings
@@ -72,25 +74,25 @@ var EventLogActions = {
var FlowActions = {
accept: function (flow) {
- jQuery.post("/flows/" + flow.id + "/accept");
+ $.post("/flows/" + flow.id + "/accept");
},
accept_all: function(){
- jQuery.post("/flows/accept");
+ $.post("/flows/accept");
},
"delete": function(flow){
- jQuery.ajax({
+ $.ajax({
type:"DELETE",
url: "/flows/" + flow.id
});
},
duplicate: function(flow){
- jQuery.post("/flows/" + flow.id + "/duplicate");
+ $.post("/flows/" + flow.id + "/duplicate");
},
replay: function(flow){
- jQuery.post("/flows/" + flow.id + "/replay");
+ $.post("/flows/" + flow.id + "/replay");
},
revert: function(flow){
- jQuery.post("/flows/" + flow.id + "/revert");
+ $.post("/flows/" + flow.id + "/revert");
},
update: function (flow) {
AppDispatcher.dispatchViewAction({
@@ -100,7 +102,7 @@ var FlowActions = {
});
},
clear: function(){
- jQuery.post("/clear");
+ $.post("/clear");
}
};