From 48e73e90817a9c525ed50dc332d4a4341a8c6295 Mon Sep 17 00:00:00 2001 From: Felix Rabinovich Date: Fri, 9 Jan 2009 23:54:40 +0000 Subject: Theme Administration cleanup initialization --- core/controllers/admin_themes.php | 2 +- core/helpers/theme.php | 3 +-- core/views/admin_themes.html.php | 4 +++- themes/admin_default/js/ui.init.js | 2 -- 4 files changed, 5 insertions(+), 6 deletions(-) diff --git a/core/controllers/admin_themes.php b/core/controllers/admin_themes.php index 8943f588..4e9534fd 100644 --- a/core/controllers/admin_themes.php +++ b/core/controllers/admin_themes.php @@ -44,7 +44,7 @@ class Admin_Themes_Controller extends Admin_Controller { public function save() { access::verify_csrf(); - $theme = $this->input->post("theme"); + $theme = $this->input->post("themes"); if ($theme != module::get_var("core", "active_theme")) { module::set_var("core", "active_theme", $theme); message::success(t("Updated Theme")); diff --git a/core/helpers/theme.php b/core/helpers/theme.php index 62433898..20e9a9d8 100644 --- a/core/helpers/theme.php +++ b/core/helpers/theme.php @@ -39,8 +39,7 @@ class theme_Core { } public static function get_edit_form_admin($theme) { - $form = new Forge("admin/themes/edit/$theme->name", "Theme Parameters", "GET"); -// array("id" => "gThemeDetails")); + $form = new Forge("admin/themes/edit/$theme->name"); $group = $form->group("edit_theme")->label($theme->description); $group->input("name")->label(t("Name"))->id("gName")->value($theme->name); $group->submit(t("Modify Theme")); diff --git a/core/views/admin_themes.html.php b/core/views/admin_themes.html.php index e6475b45..c9e62983 100644 --- a/core/views/admin_themes.html.php +++ b/core/views/admin_themes.html.php @@ -25,6 +25,8 @@ "/> -
+
+ details ?> +
diff --git a/themes/admin_default/js/ui.init.js b/themes/admin_default/js/ui.init.js index 0bc7f156..c9cf4441 100644 --- a/themes/admin_default/js/ui.init.js +++ b/themes/admin_default/js/ui.init.js @@ -27,6 +27,4 @@ $(document).ready(function(){ console.log("clicked radio " + event.target.value); $("#gThemeDetails").load("themes/edit/" + event.target.value); }); - - $("#gThemeDetails").load("themes/edit/default"); }); -- cgit v1.2.3