From: Ɓukasz Rekucki Date: Mon, 31 Aug 2009 15:31:24 +0000 (+0200) Subject: Merge branch 'master' of git@stigma:platforma X-Git-Url: https://git.mdrn.pl/redakcja.git/commitdiff_plain/92e5a00682baeaa5a8c293351d270acee6e72a69?hp=7efaf492711897d4bfc87afce9290f5d9e55ce90 Merge branch 'master' of git@stigma: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); + }); }); }) });