Merge branch 'master' of git@stigma.nowoczesnapolska.org.pl:platforma
authorzuber <marek@stepniowski.com>
Thu, 27 Aug 2009 11:23:15 +0000 (13:23 +0200)
committerzuber <marek@stepniowski.com>
Thu, 27 Aug 2009 11:23:15 +0000 (13:23 +0200)
project/templates/explorer/panels/gallery.html

index f0ec99b..4f5ea91 100644 (file)
 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',