提交 9f677dec 编写于 作者: C Catouse

* build for dist.

上级 d8d5452a
......@@ -432,21 +432,21 @@
.chosen-disabled .chosen-choices .search-choice .search-choice-close {
cursor: default;
}
.chosen-container-single .chosen-single > .chosen-search {
.chosen-compact.chosen-container-single .chosen-single > .chosen-search {
left: 0;
display: none;
padding: 3px 4px;
opacity: 0;
}
.chosen-container-single .chosen-single > .chosen-search > input {
.chosen-compact.chosen-container-single .chosen-single > .chosen-search > input {
height: 25px;
padding: 2px 26px 2px 4px;
font-size: inherit;
}
.chosen-container-single .chosen-single > .chosen-search:before {
.chosen-compact.chosen-container-single .chosen-single > .chosen-search:before {
top: 9px;
}
.chosen-with-search.chosen-with-drop .chosen-single > .chosen-search {
.chosen-compact.chosen-with-search.chosen-with-drop .chosen-single > .chosen-search {
display: block;
opacity: 1;
}
......@@ -205,7 +205,7 @@ MIT License, https://github.com/harvesthq/chosen/blob/master/LICENSE.md
this.max_selected_options = this.options.max_selected_options || Infinity;
this.drop_direction = this.options.drop_direction || 'auto';
this.middle_highlight = this.options.middle_highlight;
this.compact_search = this.options.compact_search || true;
this.compact_search = this.options.compact_search || false;
this.inherit_select_classes = this.options.inherit_select_classes || false;
this.display_selected_options = this.options.display_selected_options != null ? this.options.display_selected_options : true;
return this.display_disabled_options = this.options.display_disabled_options != null ? this.options.display_disabled_options : true;
......@@ -652,7 +652,9 @@ MIT License, https://github.com/harvesthq/chosen/blob/master/LICENSE.md
} else {
this.container.html('<a class="chosen-single chosen-default" tabindex="-1"><span>' + this.default_text + '</span><div><b></b></div><div class="chosen-search"><input type="text" autocomplete="off" /></div></a><div class="chosen-drop"><ul class="chosen-results"></ul></div>');
if (this.compact_search) {
this.container.find('.chosen-search').appendTo(this.container.find('.chosen-single'));
this.container.addClass('chosen-compact').find('.chosen-search').appendTo(this.container.find('.chosen-single'));
} else {
this.container.find('.chosen-search').prependTo(this.container.find('.chosen-drop'));
}
}
this.form_field_jq.hide().after(this.container);
......
此差异已折叠。
此差异已折叠。
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册