update
This commit is contained in:
@@ -86,6 +86,16 @@ var as4Plugin = {
|
||||
// Prevent some action to be done if search is triggered from back/forward event
|
||||
getASFormOptionsCompleteCallBack: function(arg1) {
|
||||
as4Plugin.fromBackForwardEvent = false;
|
||||
// Safety net: always remove loader/blur at the end of an AJAX cycle.
|
||||
as4Plugin.removeLayer();
|
||||
},
|
||||
|
||||
// Ajax error callback
|
||||
showAsError: function(xhr, statusText, errorThrown) {
|
||||
as4Plugin.removeLayer();
|
||||
if (typeof(window.console) !== 'undefined' && typeof(window.console.error) === 'function') {
|
||||
window.console.error('[AS4] AJAX error', statusText, errorThrown, xhr);
|
||||
}
|
||||
},
|
||||
|
||||
// Get Ajax dynamic parameters
|
||||
@@ -93,6 +103,7 @@ var as4Plugin = {
|
||||
return {
|
||||
beforeSubmit: as4Plugin.showAsRequest,
|
||||
success: as4Plugin.showAsResponse,
|
||||
error: as4Plugin.showAsError,
|
||||
complete: as4Plugin.getASFormOptionsCompleteCallBack,
|
||||
localCache: as4Plugin.localCache,
|
||||
localCacheKey: as4Plugin.localCacheKey,
|
||||
@@ -113,6 +124,8 @@ var as4Plugin = {
|
||||
return {
|
||||
beforeSubmit: as4Plugin.showAsRequest,
|
||||
success: as4Plugin.showAsResponse,
|
||||
error: as4Plugin.showAsError,
|
||||
complete: as4Plugin.getASFormOptionsCompleteCallBack,
|
||||
localCache: as4Plugin.localCache,
|
||||
localCacheKey: as4Plugin.localCacheKey,
|
||||
cacheTTL: 2,
|
||||
|
||||
@@ -81,6 +81,16 @@ var as4Plugin = {
|
||||
// Prevent some action to be done if search is triggered from back/forward event
|
||||
getASFormOptionsCompleteCallBack: function(arg1) {
|
||||
as4Plugin.fromBackForwardEvent = false;
|
||||
// Safety net: always remove loader/blur at the end of an AJAX cycle.
|
||||
as4Plugin.removeLayer();
|
||||
},
|
||||
|
||||
// Ajax error callback
|
||||
showAsError: function(xhr, statusText, errorThrown) {
|
||||
as4Plugin.removeLayer();
|
||||
if (typeof(window.console) !== 'undefined' && typeof(window.console.error) === 'function') {
|
||||
window.console.error('[AS4] AJAX error', statusText, errorThrown, xhr);
|
||||
}
|
||||
},
|
||||
|
||||
// Get Ajax dynamic parameters
|
||||
@@ -88,6 +98,7 @@ var as4Plugin = {
|
||||
return {
|
||||
beforeSubmit: as4Plugin.showAsRequest,
|
||||
success: as4Plugin.showAsResponse,
|
||||
error: as4Plugin.showAsError,
|
||||
complete: as4Plugin.getASFormOptionsCompleteCallBack,
|
||||
localCache: as4Plugin.localCache,
|
||||
localCacheKey: as4Plugin.localCacheKey,
|
||||
@@ -108,6 +119,8 @@ var as4Plugin = {
|
||||
return {
|
||||
beforeSubmit: as4Plugin.showAsRequest,
|
||||
success: as4Plugin.showAsResponse,
|
||||
error: as4Plugin.showAsError,
|
||||
complete: as4Plugin.getASFormOptionsCompleteCallBack,
|
||||
localCache: as4Plugin.localCache,
|
||||
localCacheKey: as4Plugin.localCacheKey,
|
||||
cacheTTL: 2,
|
||||
@@ -1233,4 +1246,4 @@ var as4Plugin = {
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user