Temporarily disabled mentions for Internet Explorer due to a bug
authorAlexander Ebert <ebert@woltlab.com>
Sat, 27 Jul 2013 12:52:23 +0000 (14:52 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Sat, 27 Jul 2013 12:52:23 +0000 (14:52 +0200)
wcfsetup/install/files/js/WCF.Message.js

index 56a45be743701e7ee0cecc31976a454a2a5aecca..dc5f1c6d4e096f2b974df8de841e313b663cf2dd 100644 (file)
@@ -2959,6 +2959,15 @@ WCF.Message.UserMention = Class.extend({
         * @param       string          editorID
         */
        init: function(editorID) {
+               // temporary disable suggestions for Internet Explorer
+               //
+               // this issue is caused by misplacing the range within the parent element,
+               // while the typed chars are appended to the preceeding text node, without
+               // getting focused for some reason
+               if ($.browser.msie) {
+                       return;
+               }
+               
                this._textarea = $('#' + editorID);
                
                this._suggestionList = $('<ul class="dropdownMenu userSuggestionList" />').appendTo(this._textarea.parent());