summaryrefslogtreecommitdiff
path: root/themes/admin_default/js
diff options
context:
space:
mode:
authorFelix Rabinovich <virshu@users.sourceforge.net>2009-01-10 08:00:43 +0000
committerFelix Rabinovich <virshu@users.sourceforge.net>2009-01-10 08:00:43 +0000
commit006f18dc7ac4c40e1ca48de5bc4d8bb492bbc454 (patch)
tree4c916444f5e5128881890a4578986d91b97a99c6 /themes/admin_default/js
parent9d584a528b8aa6b825a489ddf4bb9ecd50c54016 (diff)
Split themes into two tabs for regular and admin themes
Diffstat (limited to 'themes/admin_default/js')
-rw-r--r--themes/admin_default/js/ui.init.js13
1 files changed, 12 insertions, 1 deletions
diff --git a/themes/admin_default/js/ui.init.js b/themes/admin_default/js/ui.init.js
index c9cf4441..b662ce80 100644
--- a/themes/admin_default/js/ui.init.js
+++ b/themes/admin_default/js/ui.init.js
@@ -24,7 +24,18 @@ $(document).ready(function(){
};
$("#gThemeAdmin :radio").click(function(event) {
- console.log("clicked radio " + event.target.value);
$("#gThemeDetails").load("themes/edit/" + event.target.value);
});
+
+ $("#gThemeTabs > ul").tabs({ select: updateThemeDetails });
});
+
+function updateThemeDetails(evt, ui) {
+ var themeName;
+ if (ui.index == 0) {
+ themeName = $("#gtRegular :checked").val();
+ } else {
+ themeName = $("#gtAdmin :checked").val();
+ }
+ $("#gThemeDetails").load("themes/edit/" + themeName);
+}