diff options
author | Bharat Mediratta <bharat@menalto.com> | 2008-12-23 07:30:14 +0000 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2008-12-23 07:30:14 +0000 |
commit | 76b1500209e5c5becef180eae2abed78d18d09db (patch) | |
tree | 19c929f1a8183bb48db5e09dbbd8081c22644430 /core/helpers | |
parent | 69daaffb054f20574cb59078ce205920f4678da6 (diff) |
Clean up the way that we upload via dialogs:
1) If the create request is Ajax, then return a 201 Created response code
2) If we receive back a 201 response, then switch to the new page.
3) Display a status message when we do an upload.
Diffstat (limited to 'core/helpers')
-rw-r--r-- | core/helpers/photo.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/core/helpers/photo.php b/core/helpers/photo.php index d8fc2595..e5ed2b22 100644 --- a/core/helpers/photo.php +++ b/core/helpers/photo.php @@ -95,8 +95,7 @@ class photo_Core { } static function get_add_form($parent) { - $form = new Forge("albums/{$parent->id}", "", "post", - array("id" => "gAddPhotoForm", "enctype" => "multipart/form-data")); + $form = new Forge("albums/{$parent->id}", "", "post", array("id" => "gAddPhotoForm")); $group = $form->group("add_photo")->label(sprintf(_("Add Photo to %s"), $parent->title)); $group->input("name")->label(_("Name")); $group->input("title")->label(_("Title")); |