From 0033887ba858659b5e360baa69031055c98974f7 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Sun, 11 Jan 2009 00:24:39 +0000 Subject: Rework the way we do theme selection. Show the currently active theme and then thumbnails for all the other available themes. If you select one of the other available themes, it gives you a preview pane where you can look at either the main page or the site admin page with the new theme, then choose to activate it if you like it. --- themes/admin_default/js/ui.init.js | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'themes/admin_default/js/ui.init.js') diff --git a/themes/admin_default/js/ui.init.js b/themes/admin_default/js/ui.init.js index 95d516fe..cca5e738 100644 --- a/themes/admin_default/js/ui.init.js +++ b/themes/admin_default/js/ui.init.js @@ -1,5 +1,4 @@ $(document).ready(function(){ - // Add Superfish menu class $("#gSiteAdminMenu ul.gMenu").addClass("sf-menu"); $("ul.gMenu").addClass("sf-menu"); @@ -23,12 +22,6 @@ $(document).ready(function(){ $(dialogLinks[i]).bind("click", {element: dialogLinks[i]}, handleDialogEvent); }; - $("#gThemeAdmin :radio").click(function(event) { - $("#gThemeDetails").load("themes/edit_form/" + event.target.value); - }); - - $("#gThemeTabs > ul").tabs({ select: updateThemeDetails }); - $("#gThemeDetailsForm").ajaxForm( { dataType: "json", success: function(body, result, set) { @@ -39,13 +32,3 @@ $(document).ready(function(){ } }}); }); - -function updateThemeDetails(evt, ui) { - var themeName; - if (ui.index == 0) { - themeName = $("#gtRegular :checked").val(); - } else { - themeName = $("#gtAdmin :checked").val(); - } - $("#gThemeDetails").load("themes/edit_form/" + themeName); -} -- cgit v1.2.3