Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 13 additions & 2 deletions ImageSelect.jquery.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@
}
}

$this.on('chosen:filter', function(){
$this.trigger('chosen:showing_dropdown');
});
});
});

Expand Down Expand Up @@ -155,6 +158,12 @@
for(var i = 0; i < lis.length; i++){
var li = lis[i];
var option = options[i];

var idx = $(li).attr('data-option-array-index');
if (idx){
option = chosen.form_field.options[chosen.results_data[idx].options_index];
}

var img_src = $(option).attr('data-img-src');

if(img_src != undefined){
Expand All @@ -164,9 +173,11 @@
}
});
});
$this.trigger('chosen:hiding_dropdown');
this.each(function() {
$(this).trigger('chosen:hiding_dropdown');
});
return ret;
}
});

})(jQuery);
})(jQuery);