mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-23 22:04:25 +02:00
monitoring: Re-focus check now and alike
This commit is contained in:
parent
bc187d91c5
commit
4c4e8e4ac2
@ -387,7 +387,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
var req = icinga.loader.loadUrl(url, $target, data, method);
|
var req = icinga.loader.loadUrl(url, $target, data, method);
|
||||||
req.forceFocus = autosubmit ? $(event.currentTarget) : null;
|
req.forceFocus = autosubmit ? $(event.currentTarget) : $button.length ? $button : null;
|
||||||
req.progressTimer = progressTimer;
|
req.progressTimer = progressTimer;
|
||||||
|
|
||||||
event.stopPropagation();
|
event.stopPropagation();
|
||||||
|
@ -331,7 +331,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
this.redirectToUrl(redirect, req.$target, req.url, req.getResponseHeader('X-Icinga-Rerender-Layout'));
|
this.redirectToUrl(redirect, req.$target, req.url, req.getResponseHeader('X-Icinga-Rerender-Layout'), req.forceFocus);
|
||||||
return true;
|
return true;
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -340,10 +340,10 @@
|
|||||||
*
|
*
|
||||||
* @param {string} url
|
* @param {string} url
|
||||||
* @param {object} $target
|
* @param {object} $target
|
||||||
* @param {string] origin
|
* @param {string} origin
|
||||||
* @param {boolean} rerenderLayout
|
* @param {boolean} rerenderLayout
|
||||||
*/
|
*/
|
||||||
redirectToUrl: function (url, $target, origin, rerenderLayout) {
|
redirectToUrl: function (url, $target, origin, rerenderLayout, forceFocus) {
|
||||||
var icinga = this.icinga;
|
var icinga = this.icinga;
|
||||||
|
|
||||||
if (typeof rerenderLayout === 'undefined') {
|
if (typeof rerenderLayout === 'undefined') {
|
||||||
@ -392,7 +392,8 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
this.loadUrl(url, $target);
|
var req = this.loadUrl(url, $target);
|
||||||
|
req.forceFocus = url === origin ? forceFocus : null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user