Skip to content
This repository was archived by the owner on Aug 15, 2025. It is now read-only.

context.updateModel ajax $.get with chrome 57.0.2987.133 #4

@celeg

Description

@celeg

hello, thank you for your work.
I have a problem since the update of chrome (57.0.2987.133) , when i try update the content.udpate in $.get the result it's strange. if i refresh the page sometimes the update don't work
`

updateList : function(model, context) {
if(index == undefined){index = model.paged;}
elm = this;
arg = {};
$.ajaxSetup({ cache: false });
$.get('/api/' + module_name + '/_customers', arg, function (data)
{
json = JSON.parse(data);
if (json.statut && json.statut == 'ok')
{
list = json.res.list;
context.updateModel(function(model,context)
{
model.list = list; // bug sometimes in the vue -> not display in the vue but stored in model.list
console.log(model.list);
});
}
return json;
}).fail(function () {
console.log('error');
});
}

It's a simple json result {name:'xxxxx',id:1},{name:'xxxxx',id:2}, the result is return by $.get and
when i try with explorer or firefox the code work fine. One idea please ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions