fix: [attribute:edit] Create chosen picker when modal is shown

pull/5767/head
mokaddem 2020-03-27 16:04:26 +01:00
parent 9739cb7243
commit 6626e5bf24
No known key found for this signature in database
GPG Key ID: 164C473F627A06FA
1 changed files with 2 additions and 2 deletions

View File

@ -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>