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 +++ core/views/simple_uploader.html.php | 58 +++++++++++++++++++----------------- 2 files changed, 35 insertions(+), 27 deletions(-) (limited to 'core') 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")); + } } diff --git a/core/views/simple_uploader.html.php b/core/views/simple_uploader.html.php index d8cbd634..ed4fad08 100644 --- a/core/views/simple_uploader.html.php +++ b/core/views/simple_uploader.html.php @@ -1,30 +1,34 @@ -
- $item->title)) ?> -
+
"> +
+ $item->title)) ?> +
- - " /> - - - - - " - quality="high" - bgcolor="#ffffff" - flashVars="" - width="470" height="400" name="" - align="middle" - play="true" - loop="false" - quality="high" - allowScriptAccess="sameDomain" - type="application/x-shockwave-flash" - pluginspage="http://www.adobe.com/go/getflashplayer"> - - + + " /> + + + + + " + quality="high" + bgcolor="#ffffff" + flashVars="" + width="470" height="400" name="" + align="middle" + play="true" + loop="false" + quality="high" + allowScriptAccess="sameDomain" + type="application/x-shockwave-flash" + pluginspage="http://www.adobe.com/go/getflashplayer"> + + + + "> +
-- cgit v1.2.3