summaryrefslogtreecommitdiffstats
path: root/pyload/webui/themes/default/js/static/tinytab.js
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-10-17 02:23:53 +0200
committerGravatar Walter Purcaro <vuolter@gmail.com> 2014-10-17 02:23:53 +0200
commit0ca6e7c210a8cfb0be215a85a4a73c7dcc00bc67 (patch)
treec99d3bd73f7b33c4140d2e4bec09e7d139573e25 /pyload/webui/themes/default/js/static/tinytab.js
parent[themes] Code cosmetics (diff)
downloadpyload-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.js48
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