Set value_class option for multi-select list

This commit is contained in:
Hadi Nategh 2019-11-05 11:28:27 +01:00
parent 9868c3c590
commit 16e09a1093

View File

@ -378,7 +378,7 @@ var et2_selectbox = (function(){ "use strict"; return et2_inputWidget.extend(
}
label.append(jQuery("<span>"+_label+"</span>"));
var li = jQuery(document.createElement("li")).append(label);
if (this.options.value_class !='') li.addClass(this.options.value_class+_value);
li.appendTo(dom_element || this.multiOptions);
},