summaryrefslogtreecommitdiff
path: root/modules/tag/controllers
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2010-01-31 16:58:42 -0800
committerTim Almdal <tnalmdal@shaw.ca>2010-01-31 16:58:42 -0800
commite98991b90f3fb1d81d510af20c58644441b83534 (patch)
treecceaa900690d804b2245fda168246cb71c32b023 /modules/tag/controllers
parentc050acf30a7351bf0ef5b8ee206704c073e881c7 (diff)
return a location method so the page reloads properly if the edit was successful.
Diffstat (limited to 'modules/tag/controllers')
-rw-r--r--modules/tag/controllers/admin_tags.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/tag/controllers/admin_tags.php b/modules/tag/controllers/admin_tags.php
index 3b605a4e..9092ec68 100644
--- a/modules/tag/controllers/admin_tags.php
+++ b/modules/tag/controllers/admin_tags.php
@@ -97,7 +97,8 @@ class Admin_Tags_Controller extends Admin_Controller {
message::success($message);
log::success("tags", $message);
- print json_encode(array("result" => "success"));
+ print json_encode(array("result" => "success",
+ "location" => url::site("admin/tags")));
} else {
print json_encode(array("result" => "error", "form" => $in_place_edit->render()));
}