js: Disable text selection for multiselect tables only
This commit is contained in:
parent
0ac2a8898a
commit
a6fb3d59f8
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue