From: zuber Date: Mon, 31 Aug 2009 13:45:36 +0000 (+0200) Subject: Poprawienie odwołania do formularza zmiany galerii w /panels/gallery.html. X-Git-Url: https://git.mdrn.pl/redakcja.git/commitdiff_plain/b66b5c558742172b47fff66030ab6d19c3cbb151?hp=6d8e98552f9938843dc33eebfb0dc19277f30a7f Poprawienie odwołania do formularza zmiany galerii w /panels/gallery.html. --- diff --git a/project/templates/explorer/panels/gallery.html b/project/templates/explorer/panels/gallery.html index a5ac5592..af3a5cb4 100644 --- a/project/templates/explorer/panels/gallery.html +++ b/project/templates/explorer/panels/gallery.html @@ -10,9 +10,10 @@ 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() { - $(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); }); })