diff options
author | Felix Rabinovich <virshu@users.sourceforge.net> | 2009-01-09 23:54:40 +0000 |
---|---|---|
committer | Felix Rabinovich <virshu@users.sourceforge.net> | 2009-01-09 23:54:40 +0000 |
commit | 48e73e90817a9c525ed50dc332d4a4341a8c6295 (patch) | |
tree | 69b4026c5394fc350dacadeee396bdbead26febc | |
parent | b647aa0f74e66548d6d69fc4585b89220ce60043 (diff) |
Theme Administration cleanup initialization
-rw-r--r-- | core/controllers/admin_themes.php | 2 | ||||
-rw-r--r-- | core/helpers/theme.php | 3 | ||||
-rw-r--r-- | core/views/admin_themes.html.php | 4 | ||||
-rw-r--r-- | 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 @@ </tr></tbody></table> <input type="submit" value="<?= t("Save") ?>"/> </form> - <div id="gThemeDetails"></div> + <div id="gThemeDetails"> + <?= $themes[$active]->details ?> + </div> </div> 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"); }); |