Mercurial > lada > lada-client
comparison app/controller/Orte.js @ 215:19d79b41f95d
Fixed issue22
author | Torsten Irländer <torsten.irlaender@intevation.de> |
---|---|
date | Mon, 15 Jul 2013 15:30:42 +0200 |
parents | 5414e611097e |
children | 6aedf2026fb4 |
comparison
equal
deleted
inserted
replaced
214:38e84783785f | 215:19d79b41f95d |
---|---|
69 // Create a new Ortedetail if nessecary | 69 // Create a new Ortedetail if nessecary |
70 ortdetailstore.sync({ | 70 ortdetailstore.sync({ |
71 success: function(batch, options) { | 71 success: function(batch, options) { |
72 if (newortdetail) { | 72 if (newortdetail) { |
73 // Get ID from new created ortdetail and set it to the ort | 73 // Get ID from new created ortdetail and set it to the ort |
74 var response = options.operations.update[0].store.proxy.reader.jsonData; | 74 var response = options.operations.create[0].store.proxy.reader.jsonData; |
75 form.model.set('ortId', response.ortId); | 75 form.model.set('ortId', response.ortId); |
76 } | 76 } |
77 form.commit(); | 77 form.commit(); |
78 }, | 78 }, |
79 failure: function() { | 79 failure: function() { |