Hey everyone, I seem to be unable to do callbacks when calling Model.save().
Here is my save function:
Code:
Record.save({
callback: function(records, operation, success){
console.log("Yeaa!");
}
});
I also tried success: function() and it didn't work too. I had my server-side method return a "success" property explicitly set to "true", also to no avail.
And here is my configured proxy:
Code:
proxy: {
type: 'direct',
api: {
//client-side function : server-side function.
update: QueryTraining.updateTraining
},
reader:{
type:'json',
successProperty: 'success'
}
}
Anyone knows whats going on ?