This commit is contained in:
James Cole
2017-12-20 20:07:57 +01:00
parent 62a4af8607
commit 36c8275f5e
8 changed files with 9 additions and 8 deletions

View File

@@ -115,11 +115,11 @@ function sortStop(event, ui) {
});
if (parent.hasClass('rule-triggers')) {
$.post('rules/trigger/order/' + ruleId, {triggers: entries}).fail(function () {
$.post('rules/trigger/order/' + ruleId, {triggers: entries, _token: token}).fail(function () {
alert('Could not re-order rule triggers. Please refresh the page.');
});
} else {
$.post('rules/action/order/' + ruleId, {actions: entries}).fail(function () {
$.post('rules/action/order/' + ruleId, {actions: entries, _token: token}).fail(function () {
alert('Could not re-order rule actions. Please refresh the page.');
});