EV3-445 Termékmodul- egy termék keresése part 1

This commit is contained in:
E98Developer 2026-07-14 10:09:38 +02:00
parent 6758317599
commit 50ebbbbd74
2 changed files with 5 additions and 0 deletions

View File

@ -171,6 +171,7 @@ window.ProductAdmin=function (options,ProductItem) {
ajax: { ajax: {
url: Opts.URL.getProductSearch, url: Opts.URL.getProductSearch,
dataType: 'json', dataType: 'json',
delay: 300,
data: function(params) { data: function(params) {
return { return {
term: params.term || '', term: params.term || '',

View File

@ -197,6 +197,10 @@ window.select2CreateTag=function (params){
} }
window.ajaxErrorHandler= function (xhr, ajaxOptions, thrownError){ 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); debug(this);
console.error(xhr); console.error(xhr);
console.error(ajaxOptions); console.error(ajaxOptions);