diff options
| author | Felix Rabinovich <virshu@users.sourceforge.net> | 2009-01-10 08:00:43 +0000 |
|---|---|---|
| committer | Felix Rabinovich <virshu@users.sourceforge.net> | 2009-01-10 08:00:43 +0000 |
| commit | 006f18dc7ac4c40e1ca48de5bc4d8bb492bbc454 (patch) | |
| tree | 4c916444f5e5128881890a4578986d91b97a99c6 /themes/admin_default/js | |
| parent | 9d584a528b8aa6b825a489ddf4bb9ecd50c54016 (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.js | 13 |
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); +} |
