fnp
/
redakcja.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
b66b5c5
)
Podstawowy zoom. Refs #32.
author
zuber
<marek@stepniowski.com>
Mon, 31 Aug 2009 15:12:50 +0000
(17:12 +0200)
committer
zuber
<marek@stepniowski.com>
Mon, 31 Aug 2009 15:12:50 +0000
(17:12 +0200)
project/templates/explorer/panels/gallery.html
patch
|
blob
|
history
diff --git
a/project/templates/explorer/panels/gallery.html
b/project/templates/explorer/panels/gallery.html
index
af3a5cb
..
565a636
100644
(file)
--- 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() {
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);
$('.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 = $('<div style="position: absolute; top: 0; left: 0; right: 0; bottom: 0; overflow: scroll">'
+ + '<img src="' + bigSrc + '" />'
+ + '</div>').click(function() {
+ $(this).remove();
+ })
+ zoom.appendTo(contentDiv);
+ });
});
})
});
});
})
});