aboutsummaryrefslogtreecommitdiff
path: root/web/app/controller
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-10-03 12:04:24 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2015-10-03 12:04:24 +1300
commit8460acbc69ab19f35fd5079ab615ea11a6a09675 (patch)
tree1e5e350ae6fa9fa9865ffceeef6ab10869b996be /web/app/controller
parent1c4aba3129d01a2dc982d1a6f0bed0a05f3f0a79 (diff)
downloadtrackermap-server-8460acbc69ab19f35fd5079ab615ea11a6a09675.tar.gz
trackermap-server-8460acbc69ab19f35fd5079ab615ea11a6a09675.tar.bz2
trackermap-server-8460acbc69ab19f35fd5079ab615ea11a6a09675.zip
Move device panel class
Diffstat (limited to 'web/app/controller')
-rw-r--r--web/app/controller/Root.js11
1 files changed, 7 insertions, 4 deletions
diff --git a/web/app/controller/Root.js b/web/app/controller/Root.js
index 9ae7fa761..d4b3e794d 100644
--- a/web/app/controller/Root.js
+++ b/web/app/controller/Root.js
@@ -18,7 +18,10 @@ Ext.define('Traccar.controller.Root', {
extend: 'Ext.app.Controller',
requires: [
- 'Traccar.LoginManager'
+ 'Traccar.LoginManager',
+ 'Traccar.view.login.Login',
+ 'Traccar.view.Main',
+ 'Traccar.view.MainMobile'
],
init: function() {
@@ -46,7 +49,7 @@ Ext.define('Traccar.controller.Root', {
if (success) {
this.loadApp();
} else {
- this.login = Ext.create('Traccar.view.login.Login', {
+ this.login = Ext.create('widget.login', {
listeners: {
scope: this,
login: 'onLogin'
@@ -65,9 +68,9 @@ Ext.define('Traccar.controller.Root', {
Ext.getStore('Devices').load();
Ext.getBody().empty();
if (this.isPhone) {
- Ext.create('Traccar.view.MainMobile');
+ Ext.create('widget.mainMobile');
} else {
- Ext.create('Traccar.view.Main');
+ Ext.create('widget.main');
}
}
});