mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-07-25 01:04:25 -04:00
Add dropzone js uploader as a replacement for uploadify. The latter still remains almost entirely intact.
This commit is contained in:
@@ -91,6 +91,22 @@ class Uploader_Controller extends Controller {
|
||||
}
|
||||
|
||||
private function _get_add_form($album) {
|
||||
$form = new Forge("uploader/finish", "", "post", array("id" => "gAddPhotosForm", 'class' => 'dropzone'));
|
||||
$group = $form->group("add_photos")
|
||||
->label(t("Add photos to %album_title", array("album_title" => html::purify($album->title))));
|
||||
$group->dropzone("dropzone")->album($album);
|
||||
|
||||
$group_actions = $form->group("actions");
|
||||
$group_actions->dropzone_buttons("");
|
||||
|
||||
$inputs_before_event = array_keys($form->add_photos->inputs);
|
||||
module::event("add_photos_form", $album, $form);
|
||||
$inputs_after_event = array_keys($form->add_photos->inputs);
|
||||
|
||||
return $form;
|
||||
}
|
||||
|
||||
private function _get_add_form_uploadify($album) {
|
||||
$form = new Forge("uploader/finish", "", "post", array("id" => "g-add-photos-form"));
|
||||
$group = $form->group("add_photos")
|
||||
->label(t("Add photos to %album_title", array("album_title" => html::purify($album->title))));
|
||||
|
||||
Reference in New Issue
Block a user