diff options
author | 2011-10-09 18:29:42 +0200 | |
---|---|---|
committer | 2011-10-09 18:29:42 +0200 | |
commit | 18eb66b6aec6abcb0c18f6fdb333b42484d656b0 (patch) | |
tree | e1c4271f3eec0289ece071b156ed92e2ddf31cfc /module/web/media/default/js/tinytab.js | |
parent | Add tooltips to the Activity bar (diff) | |
parent | updated js/mootools, some parts now coffeescript (diff) | |
download | pyload-18eb66b6aec6abcb0c18f6fdb333b42484d656b0.tar.xz |
Merged in mineo/pyload (pull request #1)
Diffstat (limited to 'module/web/media/default/js/tinytab.js')
-rw-r--r-- | module/web/media/default/js/tinytab.js | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/module/web/media/default/js/tinytab.js b/module/web/media/default/js/tinytab.js deleted file mode 100644 index 6c38292f5..000000000 --- a/module/web/media/default/js/tinytab.js +++ /dev/null @@ -1,50 +0,0 @@ -/* ---- -description: TinyTab - Tiny and simple tab handler for Mootools. - -license: MIT-style - -authors: -- Danillo César de O. Melo - -requires: -- core/1.2.4: '*' - -provides: TinyTab - -... -*/ -(function($) { - this.TinyTab = new Class({ - Implements: Events, - initialize: function(tabs, contents, opt) { - this.tabs = tabs; - this.contents = contents; - this.header = $("tabsback"); - this.headers = []; - for(var i =0; i < this.tabs.length; i++){ - this.headers.push(""); - } - if(!opt) opt = {}; - this.css = opt.selectedClass || 'selected'; - this.select(this.tabs[0]); - tabs.each(function(el){ - el.addEvent('click',function(e){ - this.select(el); - e.stop(); - }.bind(this)); - }.bind(this)); - }, - - select: function(el) { - this.tabs.removeClass(this.css); - el.addClass(this.css); - this.contents.setStyle('display','none'); - var index = this.tabs.indexOf(el); - this.header.set("text", this.headers[index]); - var content = this.contents[index]; - content.setStyle('display','block'); - this.fireEvent('change',[content,el]); - } - }); -})(document.id);
\ No newline at end of file |