mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-09-26 03:09:10 +02:00
Merge pull request #3262 from Icinga/bugfix/browser-history-multiple-columns-2779
Make navigation via browser history working as expected
This commit is contained in:
commit
f92c35c193
@ -407,19 +407,15 @@
|
|||||||
table.select($tr);
|
table.select($tr);
|
||||||
}
|
}
|
||||||
|
|
||||||
// update history
|
|
||||||
var state = icinga.history.getCol1State();
|
|
||||||
var count = table.selections().length;
|
var count = table.selections().length;
|
||||||
if (count > 0) {
|
if (count > 0) {
|
||||||
var query = table.toQuery();
|
var query = table.toQuery();
|
||||||
_this.icinga.loader.loadUrl(query, _this.icinga.events.getLinkTargetFor($tr));
|
_this.icinga.loader.loadUrl(query, _this.icinga.events.getLinkTargetFor($tr));
|
||||||
state += '#!' + query;
|
|
||||||
} else {
|
} else {
|
||||||
if (_this.icinga.events.getLinkTargetFor($tr).attr('id') === 'col2') {
|
if (_this.icinga.events.getLinkTargetFor($tr).attr('id') === 'col2') {
|
||||||
_this.icinga.ui.layout1col();
|
_this.icinga.ui.layout1col();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
_this.icinga.history.pushUrl(state);
|
|
||||||
|
|
||||||
// redraw all table selections
|
// redraw all table selections
|
||||||
_this.tables().each(function () {
|
_this.tables().each(function () {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user