Remove single selections correctly when going back in the history
This commit is contained in:
parent
8dbd671b0d
commit
cbb9ef10a2
|
@ -397,6 +397,13 @@
|
|||
$(container).find('.selection-info-count').text(table.selections().size());
|
||||
};
|
||||
|
||||
ActionTable.prototype.clearAll = function () {
|
||||
var self = this;
|
||||
this.tables().each(function () {
|
||||
new Selection(this, self.icinga).clear();
|
||||
});
|
||||
};
|
||||
|
||||
Icinga.Behaviors.ActionTable = ActionTable;
|
||||
|
||||
}) (Icinga, jQuery);
|
||||
|
|
|
@ -427,7 +427,6 @@
|
|||
} else {
|
||||
icinga.ui.layout1col();
|
||||
}
|
||||
$('table tr[href].active').removeClass('active');
|
||||
icinga.history.pushCurrentState();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -241,6 +241,9 @@
|
|||
$('#layout').removeClass('twocols');
|
||||
this.closeContainer($('#col2'));
|
||||
this.disableCloseButtons();
|
||||
|
||||
// one-column layouts never have any selection active
|
||||
this.icinga.behaviors.actiontable.clearAll();
|
||||
},
|
||||
|
||||
closeContainer: function($c) {
|
||||
|
|
Loading…
Reference in New Issue