aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/device/DeviceController.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-09-22 23:01:39 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2015-09-22 23:01:39 +1200
commit9c46d4cffe47dab99e87111a5e33aa5246c771ab (patch)
tree95255eb0bf2d7e4cace2b8abc21472c4109e5735 /web/app/view/device/DeviceController.js
parentec04b5f12e13f041262c179fa103b7e4694d7327 (diff)
downloadtrackermap-server-9c46d4cffe47dab99e87111a5e33aa5246c771ab.tar.gz
trackermap-server-9c46d4cffe47dab99e87111a5e33aa5246c771ab.tar.bz2
trackermap-server-9c46d4cffe47dab99e87111a5e33aa5246c771ab.zip
Move device dialog to view folder
Diffstat (limited to 'web/app/view/device/DeviceController.js')
-rw-r--r--web/app/view/device/DeviceController.js8
1 files changed, 3 insertions, 5 deletions
diff --git a/web/app/view/device/DeviceController.js b/web/app/view/device/DeviceController.js
index 58386596d..e2e82448d 100644
--- a/web/app/view/device/DeviceController.js
+++ b/web/app/view/device/DeviceController.js
@@ -19,10 +19,8 @@ Ext.define('Traccar.view.device.DeviceController', {
alias: 'controller.device',
requires: [
- 'Traccar.view.device.DeviceDialog',
'Traccar.view.CommandDialog',
'Traccar.view.user.UserDialog',
- 'Traccar.view.ServerDialog',
'Traccar.view.user.User',
'Traccar.view.login.LoginController'
],
@@ -51,7 +49,8 @@ Ext.define('Traccar.view.device.DeviceController', {
onAddClick: function() {
var device, dialog;
device = Ext.create('Traccar.model.Device');
- dialog = Ext.create('Traccar.view.device.DeviceDialog');
+ device.store = this.getView().getStore();
+ dialog = Ext.create('Traccar.view.DeviceDialog');
dialog.down('form').loadRecord(device);
dialog.show();
},
@@ -59,7 +58,7 @@ Ext.define('Traccar.view.device.DeviceController', {
onEditClick: function() {
var device, dialog;
device = this.getView().getSelectionModel().getSelection()[0];
- dialog = Ext.create('Traccar.view.device.DeviceDialog');
+ dialog = Ext.create('Traccar.view.DeviceDialog');
dialog.down('form').loadRecord(device);
dialog.show();
},
@@ -135,5 +134,4 @@ Ext.define('Traccar.view.device.DeviceController', {
this.getView().getSelectionModel().deselectAll();
}
}
-
});