Drop unneccessary browser history steps

... which are non-desired columns contents combinations

refs #2779
This commit is contained in:
Alexander A. Klimov 2018-01-16 12:25:22 +01:00
parent 5cb7deda20
commit 5a7ecb825a
1 changed files with 0 additions and 4 deletions

View File

@ -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 () {