aboutsummaryrefslogtreecommitdiff
path: root/web/public
diff options
context:
space:
mode:
authorJochen Topf <jochen@topf.org>2012-01-23 18:48:26 +0100
committerJochen Topf <jochen@topf.org>2012-01-23 18:48:26 +0100
commit879076c025394ff3c9fda5455d642fca18be83a6 (patch)
tree38d2a25a4d169729de2b89c5be412282094f2949 /web/public
parent3b2fd30d7ecb26c71b0db3f0fc1c6f69775330c3 (diff)
downloadtaginfo-879076c025394ff3c9fda5455d642fca18be83a6.tar
taginfo-879076c025394ff3c9fda5455d642fca18be83a6.tar.gz
Simplified javascript code
Diffstat (limited to 'web/public')
-rw-r--r--web/public/js/taginfo.js10
1 files changed, 3 insertions, 7 deletions
diff --git a/web/public/js/taginfo.js b/web/public/js/taginfo.js
index 29c7969..b7232b2 100644
--- a/web/public/js/taginfo.js
+++ b/web/public/js/taginfo.js
@@ -377,19 +377,15 @@ function create_flexigrid(domid, options) {
}
}
-function init_tabs(page, params) {
- var tabset = create_flexigrid_for[page];
- if (tabset === undefined) {
- tabset = create_flexigrid_for[page.split(/\./)[0]][page.split(/\./)[1]];
- }
+function init_tabs(params) {
return jQuery('#tabs').tabs({
show: function(event, ui) {
resize_box();
if (ui.index != 0 || window.location.hash != '') {
window.location.hash = ui.tab.hash;
}
- if (ui.tab.hash.substring(1) in tabset) {
- tabset[ui.tab.hash.substring(1)].apply(this, params);
+ if (ui.tab.hash.substring(1) in create_flexigrid_for) {
+ create_flexigrid_for[ui.tab.hash.substring(1)].apply(this, params);
}
}
});