mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-29 08:44:10 +02:00
ui.js: Update browser address bar url when container closes
`stopPendingRequestsFor()` cancel the pending request but push the canceled url to history (by calling `loader::OnFailure` internally). Now the `icingaUrl` is set again, remove it and push again the current state to history.
This commit is contained in:
parent
f3f35f86fd
commit
d794439537
@ -342,6 +342,7 @@
|
||||
},
|
||||
|
||||
closeContainer: function($c) {
|
||||
this.icinga.loader.stopPendingRequestsFor($c);
|
||||
$c.removeData('icingaUrl');
|
||||
$c.removeData('icingaTitle');
|
||||
$c.removeData('icingaRefresh');
|
||||
@ -349,8 +350,8 @@
|
||||
$c.removeData('icingaModule');
|
||||
delete $c[0].dataset.icingaContainerId;
|
||||
$c.removeAttr('class').attr('class', 'container');
|
||||
this.icinga.loader.stopPendingRequestsFor($c);
|
||||
$c.trigger('close-column');
|
||||
this.icinga.history.pushCurrentState();
|
||||
$c.html('');
|
||||
},
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user