diff options
author | Walter Purcaro <vuolter@gmail.com> | 2014-08-27 15:22:39 +0200 |
---|---|---|
committer | Walter Purcaro <vuolter@gmail.com> | 2014-08-27 15:22:39 +0200 |
commit | 4c8a6401abe2ee3752d8a30402e74e882042352f (patch) | |
tree | 64e14f3147bb60ade00aeb21a9fa97a8f862733c /module/webui/themes/default/js/MooDropMenu.min.static.js | |
parent | Re-apply 8446e16346ece5a934550f69e81d0cad528f7fba (diff) | |
download | pyload-4c8a6401abe2ee3752d8a30402e74e882042352f.tar.xz |
[webui] Restructure file tree + convert tabs to 2 whitespaces + remove setup.html
Diffstat (limited to 'module/webui/themes/default/js/MooDropMenu.min.static.js')
-rw-r--r-- | module/webui/themes/default/js/MooDropMenu.min.static.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/module/webui/themes/default/js/MooDropMenu.min.static.js b/module/webui/themes/default/js/MooDropMenu.min.static.js new file mode 100644 index 000000000..552ae247a --- /dev/null +++ b/module/webui/themes/default/js/MooDropMenu.min.static.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 |