undo a replacement of 'icon' by 'fa fa'

This commit is contained in:
Uwe Steinmann 2020-11-27 09:24:25 +01:00
parent e4be4024f5
commit ab7de0d0d0

View File

@ -12,8 +12,8 @@ chzn_template_func = function (state) {
if($(state.element).data('warning'))
warning = $(state.element).data('warning')+''; /* make sure it is a string */
var html = '<span>';
if($(state.element).data('fa fa-before'))
html += '<i class="fa fa-'+$(state.element).data('fa fa-before')+'"></i> ';
if($(state.element).data('icon-before'))
html += '<i class="fa fa-'+$(state.element).data('icon-before')+'"></i> ';
html += state.text.replace(/</g, '&lt;')+'';
if(subtitle)
html += '<br /><i>'+subtitle.replace(/</g, '&lt;')+'</i>';