From afe71d4289900eb0c03860745dbf563d560ceae1 Mon Sep 17 00:00:00 2001 From: Wahyu Ramadhan Date: Mon, 20 Feb 2023 12:46:58 +0700 Subject: [PATCH] Trigger searching with minimum input 3 character --- edit-mode/function/materialResource.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/edit-mode/function/materialResource.js b/edit-mode/function/materialResource.js index 1c69f8c..f388fc6 100644 --- a/edit-mode/function/materialResource.js +++ b/edit-mode/function/materialResource.js @@ -136,11 +136,11 @@ $(document).ready(function () { dropdownParent: materialModal, placeholder: 'Pilih material', allowClear: true, + minimumInputLength: 3, ajax: { url: `${adwIntegrationUrl}/request-material/get-material-integration`, - type: "get", - delay: 1000, - data: function (params) { + type: "get", + data: function (params) { var query = { 'name': params.term, }