diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2017-07-23 22:36:05 +1200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-23 22:36:05 +1200 |
commit | 33eafa3dd89b517fe0b06394eb2edfebd131cb33 (patch) | |
tree | 7f6f4f267fbbbcf9090d0b003fc7a9d91f37b5e9 /web/app/view/permissions | |
parent | fa5f3054efe7ca926f49f19da45013e1cf1ed81c (diff) | |
parent | 58919b078db6c163f47bcf03dcc576bb5c3ac56f (diff) | |
download | etbsa-traccar-web-33eafa3dd89b517fe0b06394eb2edfebd131cb33.tar.gz etbsa-traccar-web-33eafa3dd89b517fe0b06394eb2edfebd131cb33.tar.bz2 etbsa-traccar-web-33eafa3dd89b517fe0b06394eb2edfebd131cb33.zip |
Merge pull request #531 from Abyss777/refactor_managers
Refactor managers
Diffstat (limited to 'web/app/view/permissions')
-rw-r--r-- | web/app/view/permissions/BaseController.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/web/app/view/permissions/BaseController.js b/web/app/view/permissions/BaseController.js index 8a85a5e..860a29b 100644 --- a/web/app/view/permissions/BaseController.js +++ b/web/app/view/permissions/BaseController.js @@ -53,7 +53,7 @@ Ext.define('Traccar.view.permissions.BaseController', { data[this.getView().linkObjectName] = record.getId(); Ext.Ajax.request({ scope: this, - url: this.getView().urlApi, + url: 'api/permissions', jsonData: Ext.util.JSON.encode(data), callback: function (options, success, response) { if (!success) { @@ -71,7 +71,7 @@ Ext.define('Traccar.view.permissions.BaseController', { Ext.Ajax.request({ scope: this, method: 'DELETE', - url: this.getView().urlApi, + url: 'api/permissions', jsonData: Ext.util.JSON.encode(data), callback: function (options, success, response) { if (!success) { |