diff options
Diffstat (limited to 'view/js/main.js')
-rw-r--r-- | view/js/main.js | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/view/js/main.js b/view/js/main.js index 2e297c9d6..f3b252171 100644 --- a/view/js/main.js +++ b/view/js/main.js @@ -113,7 +113,7 @@ } function viewsrc(id) { - $.colorbox({href: 'viewsrc/' + id }); + $.colorbox({href: 'viewsrc/' + id, maxWidth: '80%', maxHeight: '80%' }); } function qCommentInsert(obj,id) { @@ -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 */ @@ -739,7 +743,7 @@ function updateConvItems(mode,data) { if(data.notify.length==0){ - $("#nav-" + notifyType + "-menu").html(notifications_empty); + $("#nav-" + notifyType + "-menu").html(aStr[nothingnew]); } else { $("#nav-" + notifyType + "-menu").html(notifications_all + notifications_mark); |