From 1de1f119d627d7f486143eeabe73b545254840aa Mon Sep 17 00:00:00 2001 From: Matthias Jentsch Date: Tue, 28 Jul 2015 17:54:08 +0200 Subject: [PATCH] Fix range selection in IE Cancel selectstart event on all selectable rows in the action table. fixes #8768 --- public/js/icinga/behavior/actiontable.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/public/js/icinga/behavior/actiontable.js b/public/js/icinga/behavior/actiontable.js index b3b409491..3f1cf1f9e 100644 --- a/public/js/icinga/behavior/actiontable.js +++ b/public/js/icinga/behavior/actiontable.js @@ -373,8 +373,11 @@ var container = evt.target; var self = evt.data.self; - // initialize all rows with the correct link, to assure that + // 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: