[BUGFIX] htmlArea RTE: Remove reference to deleted object
authorstan <typo3@sjbr.ca>
Fri, 8 Jul 2011 16:22:51 +0000 (12:22 -0400)
committerStanislas Rolland <typo3@sjbr.ca>
Fri, 8 Jul 2011 16:27:31 +0000 (18:27 +0200)
HTMLArea.Plugin refers to deleted HTMLArea.Dialog.

Change-Id: Ic16f1a5e953d84bf083972e3a3d60767bf8f10e4
Fixes: #27997
Related: #25009
Releases: 4.6
Reviewed-on: http://review.typo3.org/3155
Reviewed-by: Stanislas Rolland
Tested-by: Stanislas Rolland
typo3/sysext/rtehtmlarea/htmlarea/htmlarea.js

index 8e6c73b..51a9e51 100644 (file)
@@ -4348,7 +4348,7 @@ HTMLArea.Plugin = Ext.extend(HTMLArea.Plugin, {
         * @return      boolean
         */
        onMode: function(mode) {
-               if (mode === "textmode" && this.dialog && HTMLArea.Dialog[this.name] == this.dialog && !(this.dialog.buttonId && this.editorConfiguration.buttons[this.dialog.buttonId] && this.editorConfiguration.buttons[this.dialog.buttonId].textMode)) {
+               if (mode === "textmode" && this.dialog && !(this.dialog.buttonId && this.editorConfiguration.buttons[this.dialog.buttonId] && this.editorConfiguration.buttons[this.dialog.buttonId].textMode)) {
                        this.dialog.close();
                }
        },