From: Matthias Schmidt Date: Fri, 26 Jul 2013 21:11:12 +0000 (+0200) Subject: Fixes one part of mentioning issue in IE X-Git-Tag: 2.0.0_Beta_5~6 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=008483486831f3bf23087edf11f74988486cd8e0;p=GitHub%2FWoltLab%2FWCF.git Fixes one part of mentioning issue in IE --- 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 } }