EV3-445 Termékmodul- egy termék keresése part 1
This commit is contained in:
parent
6758317599
commit
50ebbbbd74
@ -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 || '',
|
||||
|
||||
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user