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: {
|
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 || '',
|
||||||
|
|||||||
@ -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);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user