Poprawienie odwoĊ‚ania do formularza zmiany galerii w /panels/gallery.html.
authorzuber <marek@stepniowski.com>
Mon, 31 Aug 2009 13:45:36 +0000 (15:45 +0200)
committerzuber <marek@stepniowski.com>
Mon, 31 Aug 2009 13:45:36 +0000 (15:45 +0200)
project/templates/explorer/panels/gallery.html

index a5ac559..af3a5cb 100644 (file)
 panel_hooks = {
     load: function() {
         var contentDiv = this.contentDiv;
 panel_hooks = {
     load: function() {
         var contentDiv = this.contentDiv;
-        $('.id_folders', contentDiv).change(function() {
+        $('select[name=folders]', contentDiv).change(function() {
+            var select = this;
             $('.images', contentDiv).fadeOut('slow', function() { 
             $('.images', contentDiv).fadeOut('slow', function() { 
-                $(this).html('').load('{% url folder_image_ajax %}' + $('.id_folders', contentDiv).val() + '/',  function() {
+                $(this).html('').load('{% url folder_image_ajax %}' + $(select).val() + '/',  function() {
                     $('.images-wrap', contentDiv).data('lazyload:lastCheckedScrollTop', -10000);
                 });
             })
                     $('.images-wrap', contentDiv).data('lazyload:lastCheckedScrollTop', -10000);
                 });
             })