aboutsummaryrefslogtreecommitdiffstats
path: root/themes/smartpocket/js/smartpocket.js
diff options
context:
space:
mode:
Diffstat (limited to 'themes/smartpocket/js/smartpocket.js')
-rw-r--r--themes/smartpocket/js/smartpocket.js10
1 files changed, 1 insertions, 9 deletions
diff --git a/themes/smartpocket/js/smartpocket.js b/themes/smartpocket/js/smartpocket.js
index 8f0452672..fffb993fd 100644
--- a/themes/smartpocket/js/smartpocket.js
+++ b/themes/smartpocket/js/smartpocket.js
@@ -27,15 +27,7 @@ return '<div class="ps-toolbar-close"><div class="ps-toolbar-content"></div></di
}
}
});
- $(window).bind('orientationchange', set_thumbnails_width);
- set_thumbnails_width();
+ var spThumbs = new SPThumbs(SPThumbsOpts);
});
}(window, window.jQuery, window.Code.PhotoSwipe));
-function set_thumbnails_width() {
- var dpr = 1 //window.devicePixelRatio>1 ? window.devicePixelRatio : 1
- , nb_thumbs = Math.max(2, Math.ceil($('.thumbnails').width() / (var_thumb_width/dpr+2*5)))
- , width = Math.floor(1000000 / nb_thumbs) / 10000;
- $('.thumbnails li').css('width', width+'%');
-}
-