mirror of https://github.com/MISP/MISP
fix: [attribute:edit] Create chosen picker when modal is shown
parent
9739cb7243
commit
6626e5bf24
|
@ -172,10 +172,10 @@
|
|||
$('#AttributeType').chosen();
|
||||
$('#AttributeCategory').chosen();
|
||||
<?php else: ?>
|
||||
setTimeout(function() { // make sure html is draw. TODO: use modal event to draw it
|
||||
$('#genericModal').on('shown', function() {
|
||||
$('#AttributeType').chosen();
|
||||
$('#AttributeCategory').chosen();
|
||||
}, 500);
|
||||
})
|
||||
<?php endif; ?>
|
||||
});
|
||||
</script>
|
||||
|
|
Loading…
Reference in New Issue