From 50ebbbbd742c126d56fe5ef9d8739daa5247ea17 Mon Sep 17 00:00:00 2001 From: E98Developer Date: Tue, 14 Jul 2026 10:09:38 +0200 Subject: [PATCH] =?UTF-8?q?EV3-445=20Term=C3=A9kmodul-=20egy=20term=C3=A9k?= =?UTF-8?q?=20keres=C3=A9se=20part=201?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resources/js/admin/product.js | 1 + resources/js/app.js | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/resources/js/admin/product.js b/resources/js/admin/product.js index 7597917..fe9ff4a 100644 --- a/resources/js/admin/product.js +++ b/resources/js/admin/product.js @@ -171,6 +171,7 @@ window.ProductAdmin=function (options,ProductItem) { ajax: { url: Opts.URL.getProductSearch, dataType: 'json', + delay: 300, data: function(params) { return { term: params.term || '', diff --git a/resources/js/app.js b/resources/js/app.js index d12e286..08796f1 100644 --- a/resources/js/app.js +++ b/resources/js/app.js @@ -197,6 +197,10 @@ window.select2CreateTag=function (params){ } window.ajaxErrorHandler= function (xhr, ajaxOptions, thrownError){ + if (thrownError === 'abort' || xhr.status === 0) { + console.warn('AJAX kérés megszakítva (abort), hiba nem jelenik meg.'); + return; + } debug(this); console.error(xhr); console.error(ajaxOptions);