aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormarijus <mario@mariovavti.com>2014-09-10 17:40:50 +0200
committermarijus <mario@mariovavti.com>2014-09-10 17:40:50 +0200
commitd825adf4230ac20d39829150e2e7b03942d9f9c6 (patch)
tree8bfdd40385da19a3a4f0fb493216e87e047248bb
parentc1c2214b477223e87547f06f1dc1c0c9e7fe47d4 (diff)
downloadvolse-hubzilla-d825adf4230ac20d39829150e2e7b03942d9f9c6.tar.gz
volse-hubzilla-d825adf4230ac20d39829150e2e7b03942d9f9c6.tar.bz2
volse-hubzilla-d825adf4230ac20d39829150e2e7b03942d9f9c6.zip
without this check we kill the directory autoload
-rw-r--r--view/js/main.js32
1 files changed, 17 insertions, 15 deletions
diff --git a/view/js/main.js b/view/js/main.js
index 1599c3a2e..ae90bb272 100644
--- a/view/js/main.js
+++ b/view/js/main.js
@@ -706,21 +706,23 @@ function updateConvItems(mode,data) {
}
function justifyPhotos() {
- loadingPage = true;
- $('#photo-album-contents').justifiedGallery({
- lastRow : 'nojustify',
- captions: true,
- margins: 3,
- rowHeight : 150,
- sizeRangeSuffixes : {
- 'lt100': '',
- 'lt240': '',
- 'lt320': '',
- 'lt500': '',
- 'lt640': '',
- 'lt1024': ''
- }
- }).on('jg.complete', function(e){ loadingPage = false; });
+ if($('#photo-album-contents').length > 0) {
+ loadingPage = true;
+ $('#photo-album-contents').justifiedGallery({
+ lastRow : 'nojustify',
+ captions: true,
+ margins: 3,
+ rowHeight : 150,
+ sizeRangeSuffixes : {
+ 'lt100': '',
+ 'lt240': '',
+ 'lt320': '',
+ 'lt500': '',
+ 'lt640': '',
+ 'lt1024': ''
+ }
+ }).on('jg.complete', function(e){ loadingPage = false; });
+ }
}
function notify_popup_loader(notifyType) {