[view,backend/dataproxy][s]: handle errors from dataproxy better and notify errors better in view.
This commit is contained in:
@@ -48,6 +48,9 @@ this.recline.Backend = this.recline.Backend || {};
|
||||
});
|
||||
var dfd = $.Deferred();
|
||||
my.wrapInTimeout(jqxhr).done(function(results) {
|
||||
if (results.error) {
|
||||
dfd.reject(results.error);
|
||||
}
|
||||
dataset.fields.reset(_.map(results.fields, function(fieldId) {
|
||||
return {id: fieldId};
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user