diff options
author | Walter Purcaro <vuolter@gmail.com> | 2014-08-28 04:51:53 +0200 |
---|---|---|
committer | Walter Purcaro <vuolter@gmail.com> | 2014-08-28 04:51:53 +0200 |
commit | 653d637b4ee1aa6fd112c11bf082883c3252c928 (patch) | |
tree | 644f2f253d9a9ad16eaf75a534b9f21215237fd2 /module/webui/themes/default/js/sources/tinytab.js | |
parent | Move ServerThread and PluginThread to threads directory (diff) | |
download | pyload-653d637b4ee1aa6fd112c11bf082883c3252c928.tar.xz |
[webui] Improve and fix
Diffstat (limited to 'module/webui/themes/default/js/sources/tinytab.js')
-rw-r--r-- | module/webui/themes/default/js/sources/tinytab.js | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/module/webui/themes/default/js/sources/tinytab.js b/module/webui/themes/default/js/sources/tinytab.js deleted file mode 100644 index de50279fc..000000000 --- a/module/webui/themes/default/js/sources/tinytab.js +++ /dev/null @@ -1,43 +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; - 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 content = this.contents[this.tabs.indexOf(el)]; - content.setStyle('display','block'); - this.fireEvent('change',[content,el]); - } - }); -})(document.id);
\ No newline at end of file |