changeset 454:edb9dee114f8

Issue67: Always commit the form und not only if there has been changes to the ortedetails.
author Torsten Irländer <torsten.irlaender@intevation.de>
date Fri, 13 Dec 2013 12:42:30 +0100
parents 2b886fc38282
children 7e73478780fe
files app/controller/Orte.js
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/app/controller/Orte.js	Thu Dec 12 11:18:42 2013 +0100
+++ b/app/controller/Orte.js	Fri Dec 13 12:42:30 2013 +0100
@@ -122,12 +122,12 @@
                     form.model.set('ortId', response.ortId);
                 }
                 ortidfield.setValue(ortid);
-                form.commit();
             },
             failure: function() {
                 console.log('Error on saving Ortdetails');
             }
         });
+        form.commit();
 
     },
     addItem: function(button) {

http://lada.wald.intevation.org