aboutsummaryrefslogtreecommitdiff
path: root/web/app/model
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-06-05 19:18:58 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2015-06-05 19:18:58 +1200
commit61bd26d530710e74ef1c0dfd6920b9c1d27cfdd5 (patch)
tree92638aecdc7e10b0eb745954304798cce3f9ff3d /web/app/model
parentc2afe93f1443181bc7bcce2df708a88c331b8800 (diff)
downloadtrackermap-server-61bd26d530710e74ef1c0dfd6920b9c1d27cfdd5.tar.gz
trackermap-server-61bd26d530710e74ef1c0dfd6920b9c1d27cfdd5.tar.bz2
trackermap-server-61bd26d530710e74ef1c0dfd6920b9c1d27cfdd5.zip
Add user account dialog
Diffstat (limited to 'web/app/model')
-rw-r--r--web/app/model/User.js11
1 files changed, 10 insertions, 1 deletions
diff --git a/web/app/model/User.js b/web/app/model/User.js
index 04e3e25b5..4ed3a98d3 100644
--- a/web/app/model/User.js
+++ b/web/app/model/User.js
@@ -24,5 +24,14 @@ Ext.define('Traccar.model.User', {
{ name: 'email', type: 'string' },
{ name: 'password', type: 'string' },
{ name: 'admin', type: 'boolean' }
- ]
+ ],
+
+ proxy: {
+ type: 'ajax',
+ url: '/api/user/update',
+ writer: {
+ type: 'json',
+ writeAllFields: true
+ }
+ }
});