[Lada-commits] [PATCH] Issue67: Always commit the form und not only if there has been changes to the

Wald Commits scm-commit at wald.intevation.org
Fri Dec 13 12:46:52 CET 2013


# HG changeset patch
# User Torsten Irländer <torsten.irlaender at intevation.de>
# Date 1386934950 -3600
# Node ID edb9dee114f882aa6d910758f5028b5cc752e7ba
# Parent  2b886fc3828258a58c903b8118511503f827a6ef
Issue67: Always commit the form und not only if there has been changes to the
ortedetails.

diff -r 2b886fc38282 -r edb9dee114f8 app/controller/Orte.js
--- 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) {


More information about the Lada-commits mailing list