From: zuber Date: Mon, 31 Aug 2009 15:13:03 +0000 (+0200) Subject: Merge branch 'master' of git@stigma.nowoczesnapolska.org.pl:platforma X-Git-Url: https://git.mdrn.pl/redakcja.git/commitdiff_plain/20bd2492d8bd211816c5120595b19a0a828b9f0c?hp=45fcd6d5e47f5f51e645f12a87776b9b95b2c0b6 Merge branch 'master' of git@stigma.nowoczesnapolska.org.pl:platforma --- diff --git a/project/templates/explorer/panels/gallery.html b/project/templates/explorer/panels/gallery.html index af3a5cb4..565a6360 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 = $('
' + + '' + + '
').click(function() { + $(this).remove(); + }) + zoom.appendTo(contentDiv); + }); }); }) });