From: zuber Date: Thu, 27 Aug 2009 11:22:58 +0000 (+0200) Subject: Poprawki stylu w panelu gallery.html. X-Git-Url: https://git.mdrn.pl/redakcja.git/commitdiff_plain/9dff468f6a01c7bfa4125ff2e929153482d62b56?ds=inline;hp=--cc Poprawki stylu w panelu gallery.html. --- 9dff468f6a01c7bfa4125ff2e929153482d62b56 diff --git a/project/templates/explorer/panels/gallery.html b/project/templates/explorer/panels/gallery.html index 987875aa..bf753d05 100644 --- a/project/templates/explorer/panels/gallery.html +++ b/project/templates/explorer/panels/gallery.html @@ -15,12 +15,12 @@ panel_hooks = { load: function() { var contentDiv = this.contentDiv; - $('.id_folders', contentDiv).change(function() - { - $('.images', contentDiv).load('{% url folder_image_ajax %}' + $('.id_folders', contentDiv).val() + '/', - function() { + $('.id_folders', contentDiv).change(function() { + $('.images', contentDiv).fadeOut('slow', function() { + $(this).html('').load('{% url folder_image_ajax %}' + $('.id_folders', contentDiv).val() + '/', function() { $('.images-wrap', contentDiv).data('lazyload:lastCheckedScrollTop', -10000); }); + }) }); $('.images-wrap', contentDiv).lazyload('.image-box',