diff --git a/public/css/icinga/widgets.less b/public/css/icinga/widgets.less index 6203c969c..9813bb60b 100644 --- a/public/css/icinga/widgets.less +++ b/public/css/icinga/widgets.less @@ -38,3 +38,11 @@ table.historycolorgrid a { table.historycolorgrid a:hover { text-decoration: none; } + +table.multiselect tr[href] td { + user-select: none; + -webkit-user-select: none; + -moz-user-select: none; + -ms-user-select: none; +} + diff --git a/public/js/icinga/events.js b/public/js/icinga/events.js index 1009a3cbb..745441741 100644 --- a/public/js/icinga/events.js +++ b/public/js/icinga/events.js @@ -28,7 +28,6 @@ this.applyGlobalDefaults(); this.applyHandlers($('#layout')); this.icinga.ui.prepareContainers(); - this.icinga.ui.prepareMultiselectTables($(document)); }, // TODO: What's this? diff --git a/public/js/icinga/loader.js b/public/js/icinga/loader.js index 39ed77b1e..b701d16e1 100644 --- a/public/js/icinga/loader.js +++ b/public/js/icinga/loader.js @@ -412,9 +412,6 @@ this.icinga.ui.initializeTriStates($resp); - // Make multiselection-tables not selectable. - this.icinga.ui.prepareMultiselectTables($resp); - // Replace images with sparklines. $resp.find('img.inlinepie').each(function(){ self.icinga.ui.initializeSparklines($(this)); diff --git a/public/js/icinga/ui.js b/public/js/icinga/ui.js index 152c3058c..e76e2dba8 100644 --- a/public/js/icinga/ui.js +++ b/public/js/icinga/ui.js @@ -276,19 +276,6 @@ */ }, - /** - * Prepare all multiselectable tables for multi-selection by - * removing the regular text selection. - */ - prepareMultiselectTables: function () { - var $rows = $('table.multiselect tr[href]'); - $rows.find('td').attr('unselectable', 'on') - .css('user-select', 'none') - .css('-webkit-user-select', 'none') - .css('-moz-user-select', 'none') - .css('-ms-user-select', 'none'); - }, - /** * Add the given table-row to the selection of the closest * table and deselect all other rows of the closest table.