summaryrefslogtreecommitdiff
path: root/themes/admin_default
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-01-11 00:24:39 +0000
committerBharat Mediratta <bharat@menalto.com>2009-01-11 00:24:39 +0000
commit0033887ba858659b5e360baa69031055c98974f7 (patch)
treec4a71e66fd82104e2320ccdbbcf18c0d6187fbd3 /themes/admin_default
parentc35f110686996f40b2e8d361689121a928a2d9c0 (diff)
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.
Diffstat (limited to 'themes/admin_default')
-rw-r--r--themes/admin_default/js/ui.init.js17
1 files changed, 0 insertions, 17 deletions
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);
-}