diff options
author | Walter Purcaro <vuolter@gmail.com> | 2014-10-17 02:23:53 +0200 |
---|---|---|
committer | Walter Purcaro <vuolter@gmail.com> | 2014-10-17 02:23:53 +0200 |
commit | 0ca6e7c210a8cfb0be215a85a4a73c7dcc00bc67 (patch) | |
tree | c99d3bd73f7b33c4140d2e4bec09e7d139573e25 /pyload/webui/themes/default/js/static/tinytab.js | |
parent | [themes] Code cosmetics (diff) | |
download | pyload-0ca6e7c210a8cfb0be215a85a4a73c7dcc00bc67.tar.xz |
[themes] Restore static js
Diffstat (limited to 'pyload/webui/themes/default/js/static/tinytab.js')
-rw-r--r-- | pyload/webui/themes/default/js/static/tinytab.js | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/pyload/webui/themes/default/js/static/tinytab.js b/pyload/webui/themes/default/js/static/tinytab.js index 977ef51d8..de50279fc 100644 --- a/pyload/webui/themes/default/js/static/tinytab.js +++ b/pyload/webui/themes/default/js/static/tinytab.js @@ -15,29 +15,29 @@ 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)); - }, + 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]); - } - }); + 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 |