Revert "Update select2"

This reverts commit 84e788b3d7.
This commit is contained in:
champsupertramp
2016-01-26 18:12:37 +08:00
parent ca4623c702
commit 717d4db5d8
18 changed files with 66 additions and 4349 deletions
+9 -18
View File
@@ -71,25 +71,16 @@ jQuery(document).ready(function() {
Select Dropdowns
**/
jQuery('.um-admin-field select,.umaf-selectjs').each(function(){
elem = jQuery(this);
var select_options = {
minimumResultsForSearch: 10,
width: 'resolve',
};
if( elem.hasClass('umaf-selectjs') ){
select_options.allowClear = false;
}else{
select_options.allowClear = true;
}
elem.select2(select_options);
elem.css({'display':'block'});
jQuery(".umaf-selectjs").select2({
allowClear: false,
minimumResultsForSearch: 10
});
jQuery('.um-admin-field select').select2({
allowClear: true,
minimumResultsForSearch: 10
});
/**
Tooltips
**/