summaryrefslogtreecommitdiffstats
path: root/pyload/webui/themes/bright/js/static/MooDropMenu.min.js
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-11-20 23:23:16 +0100
committerGravatar Walter Purcaro <vuolter@gmail.com> 2014-11-20 23:23:16 +0100
commit2bc9c97d3096c5a8df415c28aeb67a3c84ac15e6 (patch)
tree9eaf6ec13167d6df08bc17dd1063ba52759b8bd6 /pyload/webui/themes/bright/js/static/MooDropMenu.min.js
parent[ClickAndLoad] Rewritten (diff)
downloadpyload-2bc9c97d3096c5a8df415c28aeb67a3c84ac15e6.tar.xz
Rename theme clearbright to bright
Diffstat (limited to 'pyload/webui/themes/bright/js/static/MooDropMenu.min.js')
-rw-r--r--pyload/webui/themes/bright/js/static/MooDropMenu.min.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/pyload/webui/themes/bright/js/static/MooDropMenu.min.js b/pyload/webui/themes/bright/js/static/MooDropMenu.min.js
new file mode 100644
index 000000000..552ae247a
--- /dev/null
+++ b/pyload/webui/themes/bright/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