diff app/controller/form/Messung.js @ 712:baef70abfe71

Cosmetics.
author Raimund Renkert <raimund.renkert@intevation.de>
date Wed, 08 Apr 2015 10:52:15 +0200
parents f204f30b824a
children 2e478b3a587a
line wrap: on
line diff
--- a/app/controller/form/Messung.js	Wed Apr 08 10:51:39 2015 +0200
+++ b/app/controller/form/Messung.js	Wed Apr 08 10:52:15 2015 +0200
@@ -65,19 +65,21 @@
                 formPanel.getForm().loadRecord(formPanel.getForm().getRecord());
                 var json = response.request.scope.reader.jsonData;
                 if (json) {
-                    if(json.errors.totalCount > 0 || json.warnings.totalCount > 0) {
+                    if (json.errors.totalCount > 0 || json.warnings.totalCount > 0) {
                         formPanel.setMessages(json.errors, json.warnings);
                     }
 
-                    if(json.message){
+                    if (json.message) {
                         Ext.Msg.alert(Lada.getApplication().bundle.getMsg('err.msg.save.title')
-                            +' #'+json.message,
+                            + ' #' + json.message,
                             Lada.getApplication().bundle.getMsg(json.message));
-                    } else {
+                    }
+                    else {
                          Ext.Msg.alert(Lada.getApplication().bundle.getMsg('err.msg.save.title'),
                             Lada.getApplication().bundle.getMsg('err.msg.generic.body'));
                     }
-                } else {
+                }
+                else {
                     Ext.Msg.alert(Lada.getApplication().bundle.getMsg('err.msg.save.title'),
                         Lada.getApplication().bundle.getMsg('err.msg.response.body'));
                 }

http://lada.wald.intevation.org