aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/BaseEditDialogController.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-12-20 21:36:16 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2015-12-20 21:36:16 +1300
commitf04d420b323a324233c48d525254f1211afc0771 (patch)
tree2c4e49bf9dea236dbc069391f57ec5e0b64032e4 /web/app/view/BaseEditDialogController.js
parent2bb63a0b1c82c42c0d13614c5a67521130165368 (diff)
downloadtraccar-server-f04d420b323a324233c48d525254f1211afc0771.tar.gz
traccar-server-f04d420b323a324233c48d525254f1211afc0771.tar.bz2
traccar-server-f04d420b323a324233c48d525254f1211afc0771.zip
Update javascript API error handling
Diffstat (limited to 'web/app/view/BaseEditDialogController.js')
-rw-r--r--web/app/view/BaseEditDialogController.js5
1 files changed, 1 insertions, 4 deletions
diff --git a/web/app/view/BaseEditDialogController.js b/web/app/view/BaseEditDialogController.js
index 3b43cacf3..33bd01bd8 100644
--- a/web/app/view/BaseEditDialogController.js
+++ b/web/app/view/BaseEditDialogController.js
@@ -29,12 +29,9 @@ Ext.define('Traccar.view.BaseEditDialogController', {
store.add(record);
}
store.sync({
- success: function () {
- store.reload(); // workaround for selection problem
- },
failure: function (batch) {
store.rejectChanges();
- Traccar.ErrorManager.check(true, batch.exceptions[0].getResponse());
+ Traccar.app.showError(batch.exceptions[0].getError().response);
}
});
} else {