2010-06-16 Steffen Kamper <info@sk-typo3.de>
+ * Fixed bug #14717: [Usability] Add delay to close the context menu
* Fixed bug #14016: typo in class.t3lib_tcemain.php (Thanks to Vladimir Podkovanov)
2010-06-15 Stanislas Rolland <typo3@sjbr.ca>
clickURL: 'alt_clickmenu.php', // URL to the clickmenu.php file, see template.php
ajax: true, // template.php -> isCMLayers check
mousePos: { X: null, Y: null },
-
+ delayClickMenuHide: false,
/**
* main function, called from most clickmenu links
if (/MSIE5/.test(navigator.userAgent) && obj.id === 'contentMenu0') {
this._toggleSelectorBoxes('visible');
}
+ } else if (obj && Element.visible(obj)) {
+ this.delayClickMenuHide = true;
}
},
* @result nothing
*/
hide: function(obj) {
- Element.hide(obj);
+ this.delayClickMenuHide = false;
+ window.setTimeout(function() {
+ if (!Clickmenu.delayClickMenuHide) {
+ Element.hide(obj);
+ }
+ }, 500);
},
/**