From d3752437b925e73bffd1f09de3c14f3bd96dcf6a Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Wed, 18 Feb 2009 07:33:38 +0000 Subject: Add a 'finish' button which dismisses the dialog and refreshes the current page --- core/controllers/simple_uploader.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'core/controllers') 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")); + } } -- cgit v1.2.3