From 42dee4a1819df5a3d001656e33907a9098baf498 Mon Sep 17 00:00:00 2001 From: Oliver Hader <oliver@typo3.org> Date: Fri, 13 Jan 2012 11:55:45 +0100 Subject: [PATCH] Revert "[BUGFIX] Showing/Hiding toolbars of CE's in PageModule broken" This reverts commit 0618526df9053742086f9078bcd24f57183dff25. Change-Id: Ic05027f1fca2811ade7e9d244dd255fd9ea128e9 Resolves: #33164 Releases: 4.7 Reviewed-on: http://review.typo3.org/7769 Reviewed-by: Oliver Hader Tested-by: Oliver Hader --- typo3/sysext/cms/layout/js/typo3pageModule.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/typo3/sysext/cms/layout/js/typo3pageModule.js b/typo3/sysext/cms/layout/js/typo3pageModule.js index a0cd2a8ab44e..00926cffbf3d 100644 --- a/typo3/sysext/cms/layout/js/typo3pageModule.js +++ b/typo3/sysext/cms/layout/js/typo3pageModule.js @@ -35,7 +35,7 @@ TYPO3.Components.PageModule = { }, /** - * This method is used to bind the highlighting function "setActive" + * This method is used to bind the higlighting function "setActive" * to the mouseenter event and the "setInactive" to the mouseleave event. */ enableHighlighting: function() { @@ -45,7 +45,7 @@ TYPO3.Components.PageModule = { }, /** - * This method is used to unbind the highlighting function "setActive" + * This method is used to unbind the higlighting function "setActive" * from the mouseenter event and the "setInactive" from the mouseleave event. */ disableHighlighting: function() { @@ -59,7 +59,7 @@ TYPO3.Components.PageModule = { * user hovers the a content element. */ setActive: function(event, target) { - Ext.get(target).up('div.t3-page-ce').addCls('active'); + Ext.get(target).findParent('div.t3-page-ce', null, true).addClass('active'); }, /** @@ -68,7 +68,8 @@ TYPO3.Components.PageModule = { * content element. */ setInactive: function(event, target) { - Ext.get(target).up('div.t3-page-ce').removeCls('active'); + Ext.get(target).findParent('div.t3-page-ce', null, true).removeClass('active'); + } } -- GitLab