INNER CODE UNIT · JavaScript

checkAjaxRedirect

actframework/actframework · src/main/resources/asset/~act/js/jquery.ext.js:72

var checkAjaxRedirect = function(data, testStatus, jqXHR) {
   if (data && data.status === 278) {
       window.location = data.getResponseHeader("Location");
   }
}

jQuery.each(["get", "post", "put", "delete", "patch" ], function (i, method) {
    jQuery[ method ] = function (url, data, callback, type, errorCallback) {
        // shift arguments if data argument was omitted
        if (jQuery.isFunction(data)) {
            errorCallback = errorCallback || type;
            type = type || callback;
            callback = data;
            data = undefined;
        }

        if (typeof errorCallback === 'undefined') {
            if (jQuery.isFunction(type)) {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…