Manages and tracks active requests within the application.
Methods
-
private, static _callOnRefreshFunctions()
-
Calls each function in the _onRefreshFunctions array, handling the automatic refresh process.
-
static abort()
-
Aborts all active AJAX requests and resets related variables and status.
-
static add(ajax)
-
Adds an AJAX request to the activeRequests array and updates the status.
Parameters:
Name Type Description ajax
jqXHR The jQuery wrapped XMLHttpRequest object.
-
static addRefreshFunction(f)
-
Adds a function to the list of functions to be called on each automatic refresh.
Parameters:
Name Type Description f
function The function to add to the refresh process.
-
static remove(ajax)
-
Removes an AJAX request from the activeRequests array and updates the status.
Parameters:
Name Type Description ajax
jqXHR The jQuery wrapped XMLHttpRequest object.