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());
|
$(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.Behaviors.ActionTable = ActionTable;
|
||||||
|
|
||||||
}) (Icinga, jQuery);
|
}) (Icinga, jQuery);
|
||||||
|
|
|
@ -427,7 +427,6 @@
|
||||||
} else {
|
} else {
|
||||||
icinga.ui.layout1col();
|
icinga.ui.layout1col();
|
||||||
}
|
}
|
||||||
$('table tr[href].active').removeClass('active');
|
|
||||||
icinga.history.pushCurrentState();
|
icinga.history.pushCurrentState();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -241,6 +241,9 @@
|
||||||
$('#layout').removeClass('twocols');
|
$('#layout').removeClass('twocols');
|
||||||
this.closeContainer($('#col2'));
|
this.closeContainer($('#col2'));
|
||||||
this.disableCloseButtons();
|
this.disableCloseButtons();
|
||||||
|
|
||||||
|
// one-column layouts never have any selection active
|
||||||
|
this.icinga.behaviors.actiontable.clearAll();
|
||||||
},
|
},
|
||||||
|
|
||||||
closeContainer: function($c) {
|
closeContainer: function($c) {
|
||||||
|
|
Loading…
Reference in New Issue