X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/b66b5c558742172b47fff66030ab6d19c3cbb151..501966167ee4f2b8c4a493876a580bf26d13942a:/project/templates/explorer/panels/gallery.html?ds=sidebyside diff --git a/project/templates/explorer/panels/gallery.html b/project/templates/explorer/panels/gallery.html index af3a5cb4..0d669726 100644 --- a/project/templates/explorer/panels/gallery.html +++ b/project/templates/explorer/panels/gallery.html @@ -14,7 +14,19 @@ panel_hooks = { var select = this; $('.images', contentDiv).fadeOut('slow', function() { $(this).html('').load('{% url folder_image_ajax %}' + $(select).val() + '/', function() { + $('.images', contentDiv).fadeIn('slow'); $('.images-wrap', contentDiv).data('lazyload:lastCheckedScrollTop', -10000); + $('.image-box').click(function() { + var src = $('img', $(this)).attr('src'); + var idx = src.lastIndexOf('/'); + var bigSrc = src.substring(0, idx) + '/big' + src.substring(idx, src.length); + var zoom = $('