Add dropzone js uploader as a replacement for uploadify. The latter still remains almost entirely intact.

This commit is contained in:
Bradley W. Dutton
2017-11-04 16:39:51 -07:00
parent 37ff95f407
commit bad663e05e
9 changed files with 4146 additions and 2 deletions
+16
View File
@@ -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))));