From 008483486831f3bf23087edf11f74988486cd8e0 Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Fri, 26 Jul 2013 23:11:12 +0200 Subject: [PATCH] Fixes one part of mentioning issue in IE --- wcfsetup/install/files/js/WCF.Message.js | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/wcfsetup/install/files/js/WCF.Message.js b/wcfsetup/install/files/js/WCF.Message.js index 467f9a65ed..56a45be743 100644 --- a/wcfsetup/install/files/js/WCF.Message.js +++ b/wcfsetup/install/files/js/WCF.Message.js @@ -3225,17 +3225,8 @@ WCF.Message.UserMention = Class.extend({ // the @-sign and the entered username are now in seperate text // nodes which causes issues if the user changes the text - if ($.browser.msie) { - var $node = $($range.endContainer.$); - var $next = $($node).next(); - - $node.nodeValue += $next.nodeValue; - $next.remove(); - } - else { - $range.endContainer.$.nodeValue += $range.endContainer.$.nextSibling.nodeValue; - $($range.endContainer.$.nextSibling).remove(); - } + $range.endContainer.$.nodeValue += $range.endContainer.$.nextSibling.nodeValue; + $($range.endContainer.$.nextSibling).remove(); // make sure that the range in Firefox is that same as in the // other browsers @@ -3310,7 +3301,7 @@ WCF.Message.UserMention = Class.extend({ this._selectItem(0); } catch (e) { - // ignore errors that are causes by pressing enter to + // ignore errors that are caused by pressing enter to // often in a short period of time } } -- 2.20.1