diff app/controller/Orte.js @ 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 12231f31c112
children debfcc7713e3
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