Remove single selections correctly when going back in the history

This commit is contained in:
Matthias Jentsch 2015-07-28 15:21:14 +02:00
parent 8dbd671b0d
commit cbb9ef10a2
3 changed files with 10 additions and 1 deletions

View File

@ -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);

View File

@ -427,7 +427,6 @@
} else {
icinga.ui.layout1col();
}
$('table tr[href].active').removeClass('active');
icinga.history.pushCurrentState();
}
}

View File

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