summaryrefslogtreecommitdiffstats
path: root/module/web/themes/default/js/sources/MooDropMenu.js
diff options
context:
space:
mode:
authorGravatar stickell <l.stickell@yahoo.it> 2014-08-24 16:00:27 +0200
committerGravatar stickell <l.stickell@yahoo.it> 2014-08-24 16:00:27 +0200
commitdf888fad2bd1697f6c61930c486242764184d638 (patch)
tree290e04ade53e7f01ae74b2c7f886f711e8062afa /module/web/themes/default/js/sources/MooDropMenu.js
parent[MultiHoster] Fixed crash due to getConf deprecation (diff)
downloadpyload-df888fad2bd1697f6c61930c486242764184d638.tar.xz
Revert 8446e16346ece5a934550f69e81d0cad528f7fba. It broke the WebUI.
Diffstat (limited to 'module/web/themes/default/js/sources/MooDropMenu.js')
-rw-r--r--module/web/themes/default/js/sources/MooDropMenu.js86
1 files changed, 0 insertions, 86 deletions
diff --git a/module/web/themes/default/js/sources/MooDropMenu.js b/module/web/themes/default/js/sources/MooDropMenu.js
deleted file mode 100644
index ac0fa1874..000000000
--- a/module/web/themes/default/js/sources/MooDropMenu.js
+++ /dev/null
@@ -1,86 +0,0 @@
-/*
----
-description: This provides a simple Drop Down menu with infinit levels
-
-license: MIT-style
-
-authors:
-- Arian Stolwijk
-
-requires:
- - Core/Class.Extras
- - Core/Element.Event
- - Core/Selectors
-
-provides: [MooDropMenu, Element.MooDropMenu]
-
-...
-*/
-
-var MooDropMenu = new Class({
-
- Implements: [Options, Events],
-
- options: {
- onOpen: function(el){
- el.removeClass('close').addClass('open');
- },
- onClose: function(el){
- el.removeClass('open').addClass('close');
- },
- onInitialize: function(el){
- el.removeClass('open').addClass('close');
- },
- mouseoutDelay: 200,
- mouseoverDelay: 0,
- listSelector: 'ul',
- itemSelector: 'li',
- openEvent: 'mouseenter',
- closeEvent: 'mouseleave'
- },
-
- initialize: function(menu, options, level){
- this.setOptions(options);
- options = this.options;
-
- var menu = this.menu = document.id(menu);
-
- menu.getElements(options.itemSelector + ' > ' + options.listSelector).each(function(el){
-
- this.fireEvent('initialize', el);
-
- var parent = el.getParent(options.itemSelector),
- timer;
-
- parent.addEvent(options.openEvent, function(){
- parent.store('DropDownOpen', true);
-
- clearTimeout(timer);
- if (options.mouseoverDelay) timer = this.fireEvent.delay(options.mouseoverDelay, this, ['open', el]);
- else this.fireEvent('open', el);
-
- }.bind(this)).addEvent(options.closeEvent, function(){
- parent.store('DropDownOpen', false);
-
- clearTimeout(timer);
- timer = (function(){
- if (!parent.retrieve('DropDownOpen')) this.fireEvent('close', el);
- }).delay(options.mouseoutDelay, this);
-
- }.bind(this));
-
- }, this);
- },
-
- toElement: function(){
- return this.menu
- }
-
-});
-
-/* So you can do like this $('nav').MooDropMenu(); or even $('nav').MooDropMenu().setStyle('border',1); */
-Element.implement({
- MooDropMenu: function(options){
- return this.store('MooDropMenu', new MooDropMenu(this, options));
- }
-});