X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/6d8e98552f9938843dc33eebfb0dc19277f30a7f..b66b5c558742172b47fff66030ab6d19c3cbb151:/project/templates/explorer/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); }); })