diff options
author | André Peters <andryyy@users.noreply.github.com> | 2017-05-03 13:11:36 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-03 13:11:36 +0200 |
commit | 2bbd85fb14d7bb0893709f54ddacc3ac758409fe (patch) | |
tree | a1e2803ef62bce3aba907d075cdd278cfb92e9ad /interface | |
parent | 360061ca50a20b910dcab5cd21eeaaa3985df361 (diff) | |
download | rspamd-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.js | 4 |
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); |