aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/BasePermissionsController.js
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2016-09-01 16:05:15 +0500
committerAbyss777 <abyss@fox5.ru>2016-09-01 16:05:15 +0500
commit65bb228fd2dff0993ef4d8817175bdb96c854e1f (patch)
tree2ce4d56503523bb2ed58b0f6a1896423d99a66d8 /web/app/view/BasePermissionsController.js
parenta193759f2a38a6b32cb1a0819ef0c687b7b52071 (diff)
downloadtrackermap-server-65bb228fd2dff0993ef4d8817175bdb96c854e1f.tar.gz
trackermap-server-65bb228fd2dff0993ef4d8817175bdb96c854e1f.tar.bz2
trackermap-server-65bb228fd2dff0993ef4d8817175bdb96c854e1f.zip
Replace all getData().* on getId() and get()
Diffstat (limited to 'web/app/view/BasePermissionsController.js')
-rw-r--r--web/app/view/BasePermissionsController.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/web/app/view/BasePermissionsController.js b/web/app/view/BasePermissionsController.js
index 5aa261c63..ea0efa901 100644
--- a/web/app/view/BasePermissionsController.js
+++ b/web/app/view/BasePermissionsController.js
@@ -36,7 +36,7 @@ Ext.define('Traccar.view.BasePermissionsController', {
var i, index;
if (success) {
for (i = 0; i < records.length; i++) {
- index = this.getView().getStore().findExact('id', records[i].getData().id);
+ index = this.getView().getStore().getById(records[i].getId());
this.getView().getSelectionModel().select(index, true, true);
}
}
@@ -49,7 +49,7 @@ Ext.define('Traccar.view.BasePermissionsController', {
onBeforeSelect: function (object, record, index) {
var data = {};
data[this.getView().baseObjectName] = this.getView().baseObject;
- data[this.getView().linkObjectName] = record.getData().id;
+ data[this.getView().linkObjectName] = record.getId();
Ext.Ajax.request({
scope: this,
url: this.getView().urlApi,
@@ -65,7 +65,7 @@ Ext.define('Traccar.view.BasePermissionsController', {
onBeforeDeselect: function (object, record, index) {
var data = {};
data[this.getView().baseObjectName] = this.getView().baseObject;
- data[this.getView().linkObjectName] = record.getData().id;
+ data[this.getView().linkObjectName] = record.getId();
Ext.Ajax.request({
scope: this,
method: 'DELETE',