[otrs-cvs] otrs/var/httpd/htdocs/js Core.UI.Dialog.js,1.35,1.36

"CVS commits notifications of OTRS.org" <[email protected]>
Newsgroups gmane.comp.otrs.cvs
Message-ID <[email protected]>
Comments:
Update of /home/cvs/otrs/var/httpd/htdocs/js
In directory lancelot:/tmp/cvs-serv32593/var/httpd/htdocs/js

Modified Files:
	Core.UI.Dialog.js 
Log Message:
Fixed bug#8457 - Error if accessing AgentTicketSearch from AgentTicketPhone in IE8.

Author: mn

Index: Core.UI.Dialog.js
===================================================================
RCS file: /home/cvs/otrs/var/httpd/htdocs/js/Core.UI.Dialog.js,v
retrieving revision 1.35
retrieving revision 1.36
diff -2 -u -d -r1.35 -r1.36
--- Core.UI.Dialog.js	14 Feb 2012 14:24:46 -0000	1.35
+++ Core.UI.Dialog.js	17 Dec 2012 12:30:14 -0000	1.36
@@ -508,11 +508,4 @@
      */
     TargetNS.CloseDialog = function (Object) {
-        function ResetRTE(Editor) {
-            CKEDITOR.instances[Editor].setMode('source');
-            window.setTimeout(function () {
-                CKEDITOR.instances[Editor].setMode('wysiwyg');
-            }, 100);
-        }
-
         var $Dialog, DialogCopy, DialogCopySelector, BackupHTML, Editor;
         $Dialog = $(Object).closest('.Dialog:visible');
@@ -549,20 +542,4 @@
             Core.Data.Set($('body'), 'DialogCopy', DialogCopy);
         }
-
-        // Repair all existing rich text editors
-        // in Firefox/Linux and IE/Win the editor is not usable anymore after a OTRS dialog was opened
-        // This workaround fixes this, because opening the wysiwyg again reloads the editor.
-        if (typeof CKEDITOR !== 'undefined') {
-            for (Editor in CKEDITOR.instances) {
-                if (typeof CKEDITOR.instances[Editor].setMode === 'function') {
-                    window.setTimeout(ResetRTE, 0, Editor);
-                }
-            }
-        }
-
-        // Workaround for bug#6060 - In IE7, input elements can't get focus anymore after opening dialog
-        // giving focus automatically solves the problem
-        $('input:text:first').focus().blur();
-
     };
 
---------------------------------------------------------------------
OTRS mailing list: cvs-log - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/cvs-log
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/cvs-log
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.