summaryrefslogtreecommitdiffstats
path: root/interface/js/app/config.js
diff options
context:
space:
mode:
Diffstat (limited to 'interface/js/app/config.js')
-rw-r--r--interface/js/app/config.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/interface/js/app/config.js b/interface/js/app/config.js
index 490974209..ab0aa9371 100644
--- a/interface/js/app/config.js
+++ b/interface/js/app/config.js
@@ -197,7 +197,7 @@ define(["jquery"],
$("#actionsFormField").attr("disabled", true);
}
- function saveActions(is_cluster) {
+ function saveActions(server) {
var elts = loadActionsFromForm();
// String to array for comparison
var eltsArray = JSON.parse(loadActionsFromForm());
@@ -217,7 +217,7 @@ define(["jquery"],
rspamd.query("saveactions", null, null, "POST", {}, {
data: elts,
dataType: "json"
- }, {}, is_cluster);
+ }, {}, server);
} else {
rspamd.alertMessage("alert-modal alert-error", "Incorrect order of metric actions threshold");
}
@@ -227,7 +227,7 @@ define(["jquery"],
saveActions();
});
$("#saveActionsClusterBtn").on("click", function () {
- saveActions(true);
+ saveActions("All SERVERS");
});
},
});