aboutsummaryrefslogtreecommitdiffstats
path: root/themes/smartpocket/js/smartpocket.js
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2013-12-29 21:23:57 +0000
committerrvelices <rv-github@modusoptimus.com>2013-12-29 21:23:57 +0000
commit8c6f57e5f651395a984a0094338d2b913175aeec (patch)
tree04235e145bc53972f935c725bc8c8ddfe6ef210c /themes/smartpocket/js/smartpocket.js
parentbf9641a17b8c47f0555bca3f27be81925315e6e9 (diff)
smart pocket new thumbnail display
git-svn-id: http://piwigo.org/svn/trunk@26349 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-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+'%');
-}
-