mirror of https://github.com/MISP/MISP
chg: [UI] WIP - generic_picker added custom chosen event to support
redrawing after searchespull/4024/head
parent
4db3854140
commit
5b0e777dca
|
@ -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
Loading…
Reference in New Issue