aboutsummaryrefslogtreecommitdiffstats
path: root/view/js
diff options
context:
space:
mode:
authormarijus <mario@mariovavti.com>2014-09-20 15:40:40 +0200
committermarijus <mario@mariovavti.com>2014-09-20 15:40:40 +0200
commit9feb619bea39824823ce39ca203b92fb6b68e6fb (patch)
treeac702d6766e6cb2d39ea4f66a9a0a5fc4dd42b9c /view/js
parent1c564428182ea25892896109f6d8ec3f2a98b045 (diff)
downloadvolse-hubzilla-9feb619bea39824823ce39ca203b92fb6b68e6fb.tar.gz
volse-hubzilla-9feb619bea39824823ce39ca203b92fb6b68e6fb.tar.bz2
volse-hubzilla-9feb619bea39824823ce39ca203b92fb6b68e6fb.zip
update jg to latest preview release and try once more to really justify the whole gallery
Diffstat (limited to 'view/js')
-rw-r--r--view/js/main.js14
1 files changed, 9 insertions, 5 deletions
diff --git a/view/js/main.js b/view/js/main.js
index 2e297c9d6..086ef3196 100644
--- a/view/js/main.js
+++ b/view/js/main.js
@@ -704,22 +704,26 @@ function updateConvItems(mode,data) {
}
- function justifyPhotos(bParam_page) {
+ function justifyPhotos() {
justifiedGalleryActive = true;
- $('#photo-album-contents-' + bParam_page).justifiedGallery({
- lastRow : 'nojustify',
+ $('#photo-album-contents').justifiedGallery({
margins: 3,
- sizeRangeSuffixes : {
+ sizeRangeSuffixes: {
'lt100': '-2',
'lt240': '-2',
'lt320': '-2',
- 'lt500': '-1',
+ 'lt500': '',
'lt640': '-1',
'lt1024': '-0'
}
}).on('jg.complete', function(e){ justifiedGalleryActive = false; });
}
+ function justifyPhotosAjax() {
+ justifiedGalleryActive = true;
+ $('#photo-album-contents').justifiedGallery('norewind').on('jg.complete', function(e){ justifiedGalleryActive = false; });
+ }
+
function notify_popup_loader(notifyType) {
/* notifications template */