From 794aaefb04e5a80de9b37ff002060f62f0badc99 Mon Sep 17 00:00:00 2001 From: Joost de Valk Date: Thu, 14 Sep 2017 10:30:50 +0200 Subject: [PATCH] Increase delay for json_search_customers Increases the delay for `woocommerce_json_search_customers` to 1000, to prevent a lot of unneeded queries from happening. Fixes #16805. --- assets/js/admin/wc-enhanced-select.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/js/admin/wc-enhanced-select.js b/assets/js/admin/wc-enhanced-select.js index f4d619e44fc..d32750d050a 100644 --- a/assets/js/admin/wc-enhanced-select.js +++ b/assets/js/admin/wc-enhanced-select.js @@ -164,7 +164,7 @@ jQuery( function( $ ) { ajax: { url: wc_enhanced_select_params.ajax_url, dataType: 'json', - delay: 250, + delay: 1000, data: function( params ) { return { term: params.term,