Current Path : /storage/v11800/testtest/public_html/wp-content/plugins/customer-reviews-woocommerce/js/ |
Linux v11800 5.3.0-1023-aws #25~18.04.1-Ubuntu SMP Fri Jun 5 15:19:18 UTC 2020 aarch64
|
Current File : /storage/v11800/testtest/public_html/wp-content/plugins/customer-reviews-woocommerce/js/admin-categories.js |
jQuery(document).ready(function() {
jQuery('.cr-product-feed-categories-select').select2({
placeholder: CrProductFeedStrings.select_category,
allowClear: true,
ajax: {
url: ajaxurl,
dataType: 'json',
data: function (params) {
return {
q: params.term,
action: 'cr_google_categories'
};
},
processResults: function( data ) {
return {
results: JSON.parse(data)
};
},
cache: true
},
minimumInputLength: 2,
width: '100%'
});
jQuery('.cr-product-feed-identifiers-select').select2({
placeholder: CrProductFeedStrings.select_field,
allowClear: true,
width: '100%'
});
});