set warning label in chzn select list

This commit is contained in:
Uwe Steinmann 2017-12-06 15:37:43 +01:00
parent 17a6934321
commit 838d6c7753

View File

@ -6,7 +6,7 @@ chzn_template_func = function (state) {
if(subtitle)
html += '<br /><i>'+subtitle+'</i>';
if(warning)
html += '<br /><i class="icon-warning-sign"></i> '+warning+'';
html += '<br /><span class="label label-warning"><i class="icon-warning-sign"></i></span> '+warning+'';
html += '</span>';
var $newstate = $(html);
return $newstate;