without this check we kill the directory autoload

This commit is contained in:
marijus 2014-09-10 17:40:50 +02:00
parent c1c2214b47
commit d825adf423

View File

@ -706,21 +706,23 @@ function updateConvItems(mode,data) {
} }
function justifyPhotos() { function justifyPhotos() {
loadingPage = true; if($('#photo-album-contents').length > 0) {
$('#photo-album-contents').justifiedGallery({ loadingPage = true;
lastRow : 'nojustify', $('#photo-album-contents').justifiedGallery({
captions: true, lastRow : 'nojustify',
margins: 3, captions: true,
rowHeight : 150, margins: 3,
sizeRangeSuffixes : { rowHeight : 150,
'lt100': '', sizeRangeSuffixes : {
'lt240': '', 'lt100': '',
'lt320': '', 'lt240': '',
'lt500': '', 'lt320': '',
'lt640': '', 'lt500': '',
'lt1024': '' 'lt640': '',
} 'lt1024': ''
}).on('jg.complete', function(e){ loadingPage = false; }); }
}).on('jg.complete', function(e){ loadingPage = false; });
}
} }
function notify_popup_loader(notifyType) { function notify_popup_loader(notifyType) {