Add a 'finish' button which dismisses the dialog and refreshes the current page

This commit is contained in:
Bharat Mediratta
2009-02-18 07:33:38 +00:00
parent e24de87096
commit d3752437b9
2 changed files with 35 additions and 27 deletions
+4
View File
@@ -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"));
}
}