diff options
-rw-r--r-- | lib/gallery.dialog.js | 1 | ||||
-rw-r--r-- | modules/gallery/views/form_uploadify.html.php | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/lib/gallery.dialog.js b/lib/gallery.dialog.js index e6bd7392..289345bc 100644 --- a/lib/gallery.dialog.js +++ b/lib/gallery.dialog.js @@ -119,6 +119,7 @@ if (data.form) { var formData = unescape(data.form); $("#g-dialog form").replaceWith(formData); + $("#g-dialog").dialog("option", "position", "center"); $("#g-dialog form :submit").removeClass("ui-state-disabled") .attr("disabled", null); self._ajaxify_dialog(); diff --git a/modules/gallery/views/form_uploadify.html.php b/modules/gallery/views/form_uploadify.html.php index 588fa16d..4676fcef 100644 --- a/modules/gallery/views/form_uploadify.html.php +++ b/modules/gallery/views/form_uploadify.html.php @@ -88,6 +88,7 @@ </ul> <? endif ?> +<? if (!empty($album)): ?> <div> <p> <?= t("Photos will be uploaded to album: ") ?> @@ -99,6 +100,7 @@ <li class="g-active"> <?= html::purify($album->title) ?> </li> </ul> </div> +<? endif ?> <div id="g-add-photos-canvas"> <button id="g-add-photos-button" class="g-button ui-state-default ui-corner-all" href="#"><?= t("Select photos...") ?></button> |