Update select2

This commit is contained in:
champsupertramp
2016-01-26 16:00:09 +08:00
parent c40ee15cb5
commit 84e788b3d7
18 changed files with 4349 additions and 66 deletions
+18 -9
View File
@@ -71,16 +71,25 @@ jQuery(document).ready(function() {
Select Dropdowns
**/
jQuery(".umaf-selectjs").select2({
allowClear: false,
minimumResultsForSearch: 10
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('.um-admin-field select').select2({
allowClear: true,
minimumResultsForSearch: 10
});
/**
Tooltips
**/