mirror of https://github.com/MISP/MISP
fix: [workflow:editor] Refresh picker with value selected by default on load
- Make sure chosen knows about the selected value when the first one in the list is picked on page loadpull/9370/head
parent
786ad2dde8
commit
553226012a
|
@ -1548,7 +1548,7 @@ function afterNodeDrawCallback() {
|
|||
var $nodes = $drawflow.find('.drawflow-node')
|
||||
$nodes.find('.start-chosen').each(function() {
|
||||
var chosenOptions = $(this).data('chosen_options')
|
||||
$(this).chosen(chosenOptions)
|
||||
$(this).chosen(chosenOptions).trigger('change')
|
||||
})
|
||||
toggleDisplayOnFields()
|
||||
enablePickerCreateNewOptions()
|
||||
|
@ -1558,7 +1558,7 @@ function afterNodeDrawCallback() {
|
|||
function afterModalShowCallback() {
|
||||
$blockModal.find('.start-chosen').each(function() {
|
||||
var chosenOptions = $(this).data('chosen_options')
|
||||
$(this).chosen(chosenOptions)
|
||||
$(this).chosen(chosenOptions).trigger('change')
|
||||
})
|
||||
var cmOptions = {
|
||||
theme: 'default',
|
||||
|
|
Loading…
Reference in New Issue