X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/edc5eb8445edaacafef276ad761d1a905d7f54cd..45fcd6d5e47f5f51e645f12a87776b9b95b2c0b6:/project/templates/explorer/panels/gallery.html
diff --git a/project/templates/explorer/panels/gallery.html b/project/templates/explorer/panels/gallery.html
index 36a2357e..af3a5cb4 100644
--- a/project/templates/explorer/panels/gallery.html
+++ b/project/templates/explorer/panels/gallery.html
@@ -1,7 +1,5 @@
-
+ {{ form.folders }}
@@ -12,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);
});
})