- panel(function(event, panel) {
- $('.id_folders', panel).change(function() {
- $('.images', panel).load('{% url folder_image_ajax %}' + $('.id_folders', panel).val() + '/', function() {
- $('.images-wrap', panel).data('lazyload:lastCheckedScrollTop', -10000);
+panel_hooks = {
+ 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() {
+ $('.images-wrap', contentDiv).data('lazyload:lastCheckedScrollTop', -10000);