diff --git a/app/View/Attributes/add.ctp b/app/View/Attributes/add.ctp index a9d06238b..43dc78570 100644 --- a/app/View/Attributes/add.ctp +++ b/app/View/Attributes/add.ctp @@ -172,10 +172,10 @@ $('#AttributeType').chosen(); $('#AttributeCategory').chosen(); - setTimeout(function() { // make sure html is draw. TODO: use modal event to draw it + $('#genericModal').on('shown', function() { $('#AttributeType').chosen(); $('#AttributeCategory').chosen(); - }, 500); + }) });