Fixed bug #16433: htmlArea RTE: Default action not prevented on click in status bar
authorStanislas Rolland <typo3@sjbr.ca>
Wed, 17 Nov 2010 07:02:25 +0000 (07:02 +0000)
committerStanislas Rolland <typo3@sjbr.ca>
Wed, 17 Nov 2010 07:02:25 +0000 (07:02 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/branches/TYPO3_4-4@9421 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/sysext/rtehtmlarea/ChangeLog
typo3/sysext/rtehtmlarea/htmlarea/htmlarea.js

index f237d0b..53db8f8 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,7 @@
 2010-11-16  Stanislas Rolland  <typo3@sjbr.ca>
 
        * Fixed bug #16431: htmlArea RTE: in WebKit, clicking on image does not select it
+       * Fixed bug #16433: htmlArea RTE: Default action not prevented on click in status bar
 
 2010-11-13  Benjamin Mack  <benni@typo3.org>
 
index ba961a0..ee231a7 100644 (file)
@@ -1,6 +1,7 @@
 2010-11-16  Stanislas Rolland  <typo3@sjbr.ca>
 
        * Fixed bug #16431: htmlArea RTE: in WebKit, clicking on image does not select it
+       * Fixed bug #16433: htmlArea RTE: Default action not prevented on click in status bar
 
 2010-11-11  Stanislas Rolland  <typo3@sjbr.ca>
 
index f30fde8..b3605b7 100644 (file)
@@ -1989,11 +1989,8 @@ HTMLArea.StatusBar = Ext.extend(Ext.Container, {
                                }, true);
                                        // Ext.DomHelper does not honour the custom attribute
                                element.dom.ancestor = ancestor;
-                               if (Ext.isIE) {
-                                       element.on('click', this.onClick, this);
-                               } else {
-                                       element.on('mousedown', this.onMouseDown, this);
-                               }
+                               element.on('click', this.onClick, this);
+                               element.on('mousedown', this.onClick, this);
                                if (!Ext.isOpera) {
                                        element.on('contextmenu', this.onContextMenu, this);
                                }
@@ -2077,18 +2074,6 @@ HTMLArea.StatusBar = Ext.extend(Ext.Container, {
                return false;
        },
        /*
-        * MouseDown handler
-        */
-       onMouseDown: function (event, element) {
-               this.selectElement(element);
-               if (Ext.isIE) {
-                       return true;
-               } else {
-                       event.stopEvent();
-                       return false;
-               }
-       },
-       /*
         * ContextMenu handler
         */
        onContextMenu: function (event, target) {