summaryrefslogtreecommitdiff
path: root/themes/admin_default/js/ui.init.js
diff options
context:
space:
mode:
Diffstat (limited to 'themes/admin_default/js/ui.init.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);
+}