diff options
Diffstat (limited to 'pyload/webui/themes/bright/js/static/MooDropMenu.js')
| -rw-r--r-- | pyload/webui/themes/bright/js/static/MooDropMenu.js | 86 | 
1 files changed, 0 insertions, 86 deletions
| diff --git a/pyload/webui/themes/bright/js/static/MooDropMenu.js b/pyload/webui/themes/bright/js/static/MooDropMenu.js deleted file mode 100644 index ac0fa1874..000000000 --- a/pyload/webui/themes/bright/js/static/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)); -	} -}); | 
