diff options
author | Mario Vavti <mario@mariovavti.com> | 2015-12-07 12:13:51 +0100 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2015-12-07 12:13:51 +0100 |
commit | 69c9f4588c57a1159ab18c5987f99ea5471579d5 (patch) | |
tree | 7988e6d787fae50ba68e220c3e80665f33274b62 /view/js/main.js | |
parent | 53627c89a716fcd9bac535169710e65b229e96a5 (diff) | |
download | volse-hubzilla-69c9f4588c57a1159ab18c5987f99ea5471579d5.tar.gz volse-hubzilla-69c9f4588c57a1159ab18c5987f99ea5471579d5.tar.bz2 volse-hubzilla-69c9f4588c57a1159ab18c5987f99ea5471579d5.zip |
make justify gallery work with more than one albums per page (eg album widget)
Diffstat (limited to 'view/js/main.js')
-rw-r--r-- | view/js/main.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/view/js/main.js b/view/js/main.js index ca7d50b90..d670b704a 100644 --- a/view/js/main.js +++ b/view/js/main.js @@ -758,9 +758,9 @@ function pageUpdate() { }); } -function justifyPhotos() { +function justifyPhotos(id) { justifiedGalleryActive = true; - $('#photo-album-contents').justifiedGallery({ + $('#' + id).justifiedGallery({ selector: '> a, > div:not(.spinner, #page-end)', margins: 3, border: 0, @@ -775,9 +775,9 @@ function justifyPhotos() { }).on('jg.complete', function(e){ justifiedGalleryActive = false; }); } -function justifyPhotosAjax() { +function justifyPhotosAjax(id) { justifiedGalleryActive = true; - $('#photo-album-contents').justifiedGallery('norewind').on('jg.complete', function(e){ justifiedGalleryActive = false; }); + $('#' + id).justifiedGallery('norewind').on('jg.complete', function(e){ justifiedGalleryActive = false; }); } function notify_popup_loader(notifyType) { |