aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/BaseEditDialogController.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-10-03 20:27:15 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2015-10-03 20:27:15 +1300
commit8782eeec561e490b4262ba8983e69623daaf5845 (patch)
tree6cb8c6ccb1b4db249133d71fc521155f63b241ca /web/app/view/BaseEditDialogController.js
parent458809c4ee29e3410686bf6d8c80c746caf9724f (diff)
downloadtrackermap-server-8782eeec561e490b4262ba8983e69623daaf5845.tar.gz
trackermap-server-8782eeec561e490b4262ba8983e69623daaf5845.tar.bz2
trackermap-server-8782eeec561e490b4262ba8983e69623daaf5845.zip
Add space after function keyword
Diffstat (limited to 'web/app/view/BaseEditDialogController.js')
-rw-r--r--web/app/view/BaseEditDialogController.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/web/app/view/BaseEditDialogController.js b/web/app/view/BaseEditDialogController.js
index 0c45b3097..3b43cacf3 100644
--- a/web/app/view/BaseEditDialogController.js
+++ b/web/app/view/BaseEditDialogController.js
@@ -18,7 +18,7 @@ Ext.define('Traccar.view.BaseEditDialogController', {
extend: 'Ext.app.ViewController',
alias: 'controller.baseEditDialog',
- onSaveClick: function(button) {
+ onSaveClick: function (button) {
var dialog, store, record;
dialog = button.up('window').down('form');
dialog.updateRecord();
@@ -29,10 +29,10 @@ Ext.define('Traccar.view.BaseEditDialogController', {
store.add(record);
}
store.sync({
- success: function() {
+ success: function () {
store.reload(); // workaround for selection problem
},
- failure: function(batch) {
+ failure: function (batch) {
store.rejectChanges();
Traccar.ErrorManager.check(true, batch.exceptions[0].getResponse());
}