提交 91abf0be 编写于 作者: C Catouse

* fix $selectField undefinde error in chosen.

上级 b4dce9b7
......@@ -302,7 +302,8 @@ MIT License, https://github.com/harvesthq/chosen/blob/master/LICENSE.md
var sortValues;
if(this.sort_field && this.is_multiple) {
$selectField = $(this.sort_field);
sortValues = $selectField.val().split(this.sort_value_spliter);
var sortFieldValue = $selectField.val();
sortValues = (typeof sortFieldValue === 'string' && sortFieldValue.length) ? sortFieldValue.split(this.sort_value_spliter) : [];
if(sortValues.length) {
var sortValuesMap = {};
for(_i = 0; _i < sortValues.length; ++_i) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册