summaryrefslogtreecommitdiff
path: root/core/controllers
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-02-18 07:33:38 +0000
committerBharat Mediratta <bharat@menalto.com>2009-02-18 07:33:38 +0000
commitd3752437b925e73bffd1f09de3c14f3bd96dcf6a (patch)
tree50fb604f3b76b169129cd3d414ea35f01a0f8b4f /core/controllers
parente24de87096674943d6f9f66392901469e95e8c86 (diff)
Add a 'finish' button which dismisses the dialog and refreshes the current page
Diffstat (limited to 'core/controllers')
-rw-r--r--core/controllers/simple_uploader.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/controllers/simple_uploader.php b/core/controllers/simple_uploader.php
index f6231897..dca56201 100644
--- a/core/controllers/simple_uploader.php
+++ b/core/controllers/simple_uploader.php
@@ -58,4 +58,8 @@ class Simple_Uploader_Controller extends Controller {
log::success("content", "Added a photo", html::anchor("photos/$photo->id", "view photo"));
}
}
+
+ public function finish() {
+ print json_encode(array("result" => "success"));
+ }
}