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();
|
$('#AttributeType').chosen();
|
||||||
$('#AttributeCategory').chosen();
|
$('#AttributeCategory').chosen();
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
setTimeout(function() { // make sure html is draw. TODO: use modal event to draw it
|
$('#genericModal').on('shown', function() {
|
||||||
$('#AttributeType').chosen();
|
$('#AttributeType').chosen();
|
||||||
$('#AttributeCategory').chosen();
|
$('#AttributeCategory').chosen();
|
||||||
}, 500);
|
})
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Reference in New Issue