aboutsummaryrefslogtreecommitdiff
path: root/web
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2017-04-02 18:58:21 +1200
committerGitHub <noreply@github.com>2017-04-02 18:58:21 +1200
commit247a6bd4193077bd77608aca87d4e912f2c028ac (patch)
tree863ff130f2efb2eca084a772a0043856816d3bee /web
parent47eff075095604afa7405993ce2d7b4ae29fc939 (diff)
parent7215f56a3fbb5e5fd45abc9bafe68bd21b6591f3 (diff)
downloadtrackermap-web-247a6bd4193077bd77608aca87d4e912f2c028ac.tar.gz
trackermap-web-247a6bd4193077bd77608aca87d4e912f2c028ac.tar.bz2
trackermap-web-247a6bd4193077bd77608aca87d4e912f2c028ac.zip
Merge pull request #463 from Abyss777/fix_462
Save panel states independently for desktop and mobile
Diffstat (limited to 'web')
-rw-r--r--web/app/controller/Root.js2
-rw-r--r--web/app/view/MainMobile.js6
2 files changed, 5 insertions, 3 deletions
diff --git a/web/app/controller/Root.js b/web/app/controller/Root.js
index afdbea62..4816875f 100644
--- a/web/app/controller/Root.js
+++ b/web/app/controller/Root.js
@@ -143,7 +143,7 @@ Ext.define('Traccar.controller.Root', {
success: function (response) {
self.updateDevices(Ext.decode(response.responseText));
},
- failure: function(response) {
+ failure: function (response) {
if (response.status === 401) {
window.location.reload();
}
diff --git a/web/app/view/MainMobile.js b/web/app/view/MainMobile.js
index 3fdcb4f2..1f262ccb 100644
--- a/web/app/view/MainMobile.js
+++ b/web/app/view/MainMobile.js
@@ -47,7 +47,8 @@ Ext.define('Traccar.view.MainMobile', {
collapsed: true,
collapseMode: 'mini',
titleCollapse: true,
- floatable: false
+ floatable: false,
+ stateId: 'mobile-state-grid'
}, {
region: 'center',
xtype: 'mapView',
@@ -60,7 +61,8 @@ Ext.define('Traccar.view.MainMobile', {
flex: 1,
collapsed: true,
titleCollapse: true,
- floatable: false
+ floatable: false,
+ stateId: 'mobile-devices-grid'
}]
}, {
xtype: 'reportView'