diff options
author | Walter Purcaro <vuolter@gmail.com> | 2014-08-29 12:12:23 +0200 |
---|---|---|
committer | Walter Purcaro <vuolter@gmail.com> | 2014-08-29 12:12:23 +0200 |
commit | 81de1c4b127e116c8ca3e5df620b5c0a56a087bc (patch) | |
tree | 45d4b4d22344c9588bd2e4e16be450a239a4e2cd /module/webui/themes/flat/js/static/MooDropMenu.min.js | |
parent | [webui] Improve and fix (diff) | |
download | pyload-81de1c4b127e116c8ca3e5df620b5c0a56a087bc.tar.xz |
[webui] Improve and fix 2
Diffstat (limited to 'module/webui/themes/flat/js/static/MooDropMenu.min.js')
-rw-r--r-- | module/webui/themes/flat/js/static/MooDropMenu.min.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/module/webui/themes/flat/js/static/MooDropMenu.min.js b/module/webui/themes/flat/js/static/MooDropMenu.min.js new file mode 100644 index 000000000..552ae247a --- /dev/null +++ b/module/webui/themes/flat/js/static/MooDropMenu.min.js @@ -0,0 +1 @@ +var MooDropMenu=new Class({Implements:[Options,Events],options:{onOpen:function(e){e.removeClass("close").addClass("open")},onClose:function(e){e.removeClass("open").addClass("close")},onInitialize:function(e){e.removeClass("open").addClass("close")},mouseoutDelay:200,mouseoverDelay:0,listSelector:"ul",itemSelector:"li",openEvent:"mouseenter",closeEvent:"mouseleave"},initialize:function(e,o){this.setOptions(o),o=this.options;var e=this.menu=document.id(e);e.getElements(o.itemSelector+" > "+o.listSelector).each(function(e){this.fireEvent("initialize",e);var n,t=e.getParent(o.itemSelector);t.addEvent(o.openEvent,function(){t.store("DropDownOpen",!0),clearTimeout(n),o.mouseoverDelay?n=this.fireEvent.delay(o.mouseoverDelay,this,["open",e]):this.fireEvent("open",e)}.bind(this)).addEvent(o.closeEvent,function(){t.store("DropDownOpen",!1),clearTimeout(n),n=function(){t.retrieve("DropDownOpen")||this.fireEvent("close",e)}.delay(o.mouseoutDelay,this)}.bind(this))},this)},toElement:function(){return this.menu}});Element.implement({MooDropMenu:function(e){return this.store("MooDropMenu",new MooDropMenu(this,e))}});
\ No newline at end of file |