js: Disable text selection for multiselect tables only

This commit is contained in:
Johannes Meyer 2015-08-17 16:06:23 +02:00
parent 0ac2a8898a
commit a6fb3d59f8
1 changed files with 5 additions and 3 deletions

View File

@ -379,9 +379,6 @@
// initialize all rows with the correct link
$('table.action tr', container).each(function(idx, el) {
// IE will not ignore user-select unless we cancel selectstart
$(el).on('selectstart', false);
var $a = $('a[href].rowaction', el).first();
if ($a.length) {
// TODO: Find out whether we leak memory on IE with this:
@ -394,6 +391,11 @@
}
});
// IE will not ignore user-select unless we cancel selectstart
$('table.action.multiselect tr', container).each(function(idx, el) {
$(el).on('selectstart', false);
});
// draw all active selections that have disappeared on reload
self.tables().each(function(i, el) {
new Selection(el, self.icinga).refresh();