update jg to latest preview release and try once more to really justify the whole gallery

This commit is contained in:
marijus
2014-09-20 15:40:40 +02:00
parent 1c56442818
commit 9feb619bea
5 changed files with 671 additions and 605 deletions

View File

@@ -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 */