aboutsummaryrefslogtreecommitdiffstats
path: root/interface
diff options
context:
space:
mode:
authorAndré Peters <andryyy@users.noreply.github.com>2017-05-03 13:11:36 +0200
committerGitHub <noreply@github.com>2017-05-03 13:11:36 +0200
commit2bbd85fb14d7bb0893709f54ddacc3ac758409fe (patch)
treea1e2803ef62bce3aba907d075cdd278cfb92e9ad /interface
parent360061ca50a20b910dcab5cd21eeaaa3985df361 (diff)
downloadrspamd-2bbd85fb14d7bb0893709f54ddacc3ac758409fe.tar.gz
rspamd-2bbd85fb14d7bb0893709f54ddacc3ac758409fe.zip
Fixes redirect to "/?" after submitting values
Default type is submit, which appends "?" to the URL and kicks us back to "Status".
Diffstat (limited to 'interface')
-rw-r--r--interface/js/app/config.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/interface/js/app/config.js b/interface/js/app/config.js
index a5ec6c341..b4f6178f6 100644
--- a/interface/js/app/config.js
+++ b/interface/js/app/config.js
@@ -206,8 +206,8 @@ function($) {
}).join('') +
'<br><div class="form-group">' +
'<div class="btn-group">' +
- '<button class="btn btn-primary" id="saveActionsBtn">Save actions</button>' +
- '<button class="btn btn-primary" id="saveActionsClusterBtn">Save cluster</button>' +
+ '<button class="btn btn-primary" type="button" id="saveActionsBtn">Save actions</button>' +
+ '<button class="btn btn-primary" type="button" id="saveActionsClusterBtn">Save cluster</button>' +
'</div></div></fieldset></form>');
if (rspamd.read_only) {
$('#saveActionsClusterBtn').attr('disabled', true);