Skip to content

Ajax.Updater.success #135

@jwestbrook

Description

@jwestbrook

previous lighthouse ticket #3500
by Alexander Lisovtsov


Ajax.Request.success has bug in :

success: function() {
    var status = this.getStatus();
    return !status || (status >= 200 && status < 300) || status == 304;
},
getStatus: function() {
    try {
        if (this.transport.status === 1223) return 204;
        return this.transport.status || 0;
    } catch (e) { return 0 }
},

If getStatus == 0 then success function return true and Ajax.Updater every time update a success div.

On IPAD4 with IOS 6.1.3 when connection to server LOST -> Ajax.Updater update a "success" DIV with empty response.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions