- load: function() {
- var contentDiv = this.contentDiv;
- $('.id_folders', contentDiv).change(function()
- {
- $('.images', contentDiv).load('{% url folder_image_ajax %}' + $('.id_folders', panel).val() + '/',
- function() {
+ load: function() {
+ var contentDiv = this.contentDiv;
+ $('select[name=folders]', contentDiv).change(function() {
+ var select = this;
+ $('.images', contentDiv).fadeOut('slow', function() {
+ $(this).html('').load('{% url folder_image_ajax %}' + $(select).val() + '/', function() {