diff options
author | marijus <mario@mariovavti.com> | 2014-09-11 10:41:11 +0200 |
---|---|---|
committer | marijus <mario@mariovavti.com> | 2014-09-11 10:41:11 +0200 |
commit | 3caee72aee3d5008f954e3ccf1dc2b61fedf23d8 (patch) | |
tree | 311afb757625dcdb813bda529fb4eb86791e1701 /view/js/main.js | |
parent | 8835f646aeb6276987f11cc4799c3810802c3f1f (diff) | |
download | volse-hubzilla-3caee72aee3d5008f954e3ccf1dc2b61fedf23d8.tar.gz volse-hubzilla-3caee72aee3d5008f954e3ccf1dc2b61fedf23d8.tar.bz2 volse-hubzilla-3caee72aee3d5008f954e3ccf1dc2b61fedf23d8.zip |
another day another concept - hope this works better
Diffstat (limited to 'view/js/main.js')
-rw-r--r-- | view/js/main.js | 36 |
1 files changed, 15 insertions, 21 deletions
diff --git a/view/js/main.js b/view/js/main.js index ae90bb272..e263fd116 100644 --- a/view/js/main.js +++ b/view/js/main.js @@ -700,29 +700,25 @@ function updateConvItems(mode,data) { updatePageItems(update_mode,data); $("#page-spinner").spin(false); in_progress = false; - justifyPhotos(); }); } - function justifyPhotos() { - if($('#photo-album-contents').length > 0) { - loadingPage = true; - $('#photo-album-contents').justifiedGallery({ - lastRow : 'nojustify', - captions: true, - margins: 3, - rowHeight : 150, - sizeRangeSuffixes : { - 'lt100': '', - 'lt240': '', - 'lt320': '', - 'lt500': '', - 'lt640': '', - 'lt1024': '' - } - }).on('jg.complete', function(e){ loadingPage = false; }); - } + function justifyPhotos(bParam_page) { + $('#photo-album-contents-' + bParam_page).justifiedGallery({ + lastRow : 'nojustify', + captions: true, + margins: 3, + rowHeight : 150, + sizeRangeSuffixes : { + 'lt100': '', + 'lt240': '', + 'lt320': '', + 'lt500': '', + 'lt640': '', + 'lt1024': '' + } + }); } function notify_popup_loader(notifyType) { @@ -1093,8 +1089,6 @@ $(document).ready(function() { $(".autotime").timeago(); - justifyPhotos(); - }); function zFormError(elm,x) { |