diff options
author | rvelices <rv-github@modusoptimus.com> | 2013-12-13 20:42:05 +0000 |
---|---|---|
committer | rvelices <rv-github@modusoptimus.com> | 2013-12-13 20:42:05 +0000 |
commit | 2f550723dc2a8a0280a2de0aecddff3dda21a91c (patch) | |
tree | 04b26a1bcf0730f2b728eec5dfbc821b77e6fff9 /themes/smartpocket | |
parent | 04230f054776c4a6b1c28ddcc1a2e302be96d6e8 (diff) |
revert smartpocket retina aware thumbs
git-svn-id: http://piwigo.org/svn/trunk@25938 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r-- | themes/smartpocket/js/smartpocket.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/themes/smartpocket/js/smartpocket.js b/themes/smartpocket/js/smartpocket.js index 436adf205..8f0452672 100644 --- a/themes/smartpocket/js/smartpocket.js +++ b/themes/smartpocket/js/smartpocket.js @@ -33,7 +33,7 @@ return '<div class="ps-toolbar-close"><div class="ps-toolbar-content"></div></di }(window, window.jQuery, window.Code.PhotoSwipe));
function set_thumbnails_width() {
- var dpr = window.devicePixelRatio>1 ? window.devicePixelRatio : 1
+ 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+'%');
|