chg: [UI] WIP - generic_picker added custom chosen event to support

redrawing after searches
pull/4024/head
mokaddem 2019-01-11 11:45:28 +01:00
parent 4db3854140
commit 5b0e777dca
2 changed files with 2 additions and 7 deletions

View File

@ -147,14 +147,9 @@ function setupChosen(id) {
// hack to add template into the div
var $chosenContainer = $elem.parent().find('.chosen-container');
$elem.on('chosen:showing_dropdown keyup change', function() {
$elem.on('chosen:showing_dropdown chosen:searchdone keyup change', function() {
redrawChosenWithTemplate($elem, $chosenContainer)
});
$chosenContainer.find('input.chosen-search-input').on('input', function() {
$chosenContainer.find('.chosen-results').one('DOMSubtreeModified', function() {
redrawChosenWithTemplate($elem, $chosenContainer)
});
});
}
function redrawChosenWithTemplate($select, $chosenContainer) {

File diff suppressed because one or more lines are too long