modal.js: Don't push form submits to the history
This commit is contained in:
parent
73a4d8ac31
commit
db69f23c20
|
@ -92,6 +92,7 @@
|
||||||
var $modal = $form.closest('#modal');
|
var $modal = $form.closest('#modal');
|
||||||
|
|
||||||
var req = _this.icinga.loader.submitForm($form, $autoSubmittedBy);
|
var req = _this.icinga.loader.submitForm($form, $autoSubmittedBy);
|
||||||
|
req.addToHistory = false;
|
||||||
req.$redirectTarget = $modal.data('redirectTarget');
|
req.$redirectTarget = $modal.data('redirectTarget');
|
||||||
req.done(function (data, textStatus, req) {
|
req.done(function (data, textStatus, req) {
|
||||||
if (req.getResponseHeader('X-Icinga-Redirect')) {
|
if (req.getResponseHeader('X-Icinga-Redirect')) {
|
||||||
|
|
Loading…
Reference in New Issue