aboutsummaryrefslogtreecommitdiff
path: root/web
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-06-27 10:31:04 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2015-06-27 10:31:04 +1200
commit2f8c3c0a31c332457997dfef0837d039074078c3 (patch)
tree57fcdd531a77f48f0b42706076cfe0d381497ae2 /web
parent5bec2f79dd470415f721de275ce88870e0988bc2 (diff)
downloadtraccar-server-2f8c3c0a31c332457997dfef0837d039074078c3.tar.gz
traccar-server-2f8c3c0a31c332457997dfef0837d039074078c3.tar.bz2
traccar-server-2f8c3c0a31c332457997dfef0837d039074078c3.zip
Fix new device selection
Diffstat (limited to 'web')
-rw-r--r--web/app/view/device/DeviceDialogController.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/web/app/view/device/DeviceDialogController.js b/web/app/view/device/DeviceDialogController.js
index 106aee654..75f0a14ca 100644
--- a/web/app/view/device/DeviceDialogController.js
+++ b/web/app/view/device/DeviceDialogController.js
@@ -27,6 +27,9 @@ Ext.define('Traccar.view.device.DeviceDialogController', {
store.add(device);
}
store.sync({
+ success: function() {
+ store.reload(); // workaround for selection problem
+ },
failure: function(batch) {
store.rejectChanges(); // TODO
Traccar.ErrorManager.check(true, batch.exceptions[0].getResponse());