aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Zotlabs/Module/Photos.php2
-rwxr-xr-xview/tpl/photo_album.tpl2
2 files changed, 2 insertions, 2 deletions
diff --git a/Zotlabs/Module/Photos.php b/Zotlabs/Module/Photos.php
index f86801fcc..2ca9bfe50 100644
--- a/Zotlabs/Module/Photos.php
+++ b/Zotlabs/Module/Photos.php
@@ -770,7 +770,7 @@ class Photos extends \Zotlabs\Web\Controller {
if($photos) {
$o = replace_macros(get_markup_template('photosajax.tpl'),array(
'$photos' => $photos,
- '$album_id' => bin2hex($album)
+ '$album_id' => $datum
));
}
else {
diff --git a/view/tpl/photo_album.tpl b/view/tpl/photo_album.tpl
index 8dadeb8cb..5604c969c 100755
--- a/view/tpl/photo_album.tpl
+++ b/view/tpl/photo_album.tpl
@@ -27,13 +27,13 @@
</div>
</div>
</div>
-<div class="photos-end"></div>
<script>
$(document).ready(function() {
loadingPage = false;
justifyPhotos('photo-album-contents-{{$album_id}}');
});
</script>
+<div class="photos-end"></div>
<div id="page-spinner" class="spinner-wrapper">
<div class="spinner m"></div>
</div>