From b4b72b284b61673dfceb3c8a206181d66cd26c35 Mon Sep 17 00:00:00 2001 From: Tim Almdal Date: Thu, 27 Nov 2008 01:48:01 +0000 Subject: We are now submitting the ajax tag add form to the server correctly and rehooking the ajaxForm --- modules/tag/controllers/tags.php | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'modules/tag/controllers') diff --git a/modules/tag/controllers/tags.php b/modules/tag/controllers/tags.php index a09c789d..95d7145d 100644 --- a/modules/tag/controllers/tags.php +++ b/modules/tag/controllers/tags.php @@ -50,15 +50,11 @@ class Tags_Controller extends REST_Controller { $item_id = is_array($parameters) ? $parameters[0] : $parameters; $form = tag::get_add_form($item_id); if ($form->validate()) { - Kohana::log("debug", print_r($this->inputs->post(), true)); - Kohana::log("debug", $form->inputs["text"]->value); - $tags = explode(",", $form->inputs["text"]->value); - Kohana::log("debug", print_r($tags, true)); + $tags = explode(",", $form->inputs["tags"]->value); - $item = ORM::factory("item", $item_id); -// $form->inputs["text"] = "add new tags..."; +// $item = ORM::factory("item", $item_id); + $form->inputs["tags"]->value("add new tags..."); } - Kohana::log("debug", print_r($form, true)); print $form->render(); } -- cgit v1.2.3