diff app/controller/Proben.js @ 362:6a7a9267e00f

Issue56: Changed way how to set the form and window to readonly. Now all dialogs should habe proper readonly settings. Now the Save and Cancel button are displayed as needed.
author Torsten Irländer <torsten.irlaender@intevation.de>
date Thu, 15 Aug 2013 14:07:35 +0200
parents 94884cd8f8c0
children 90cec3bb9c09
line wrap: on
line diff
--- a/app/controller/Proben.js	Thu Aug 15 14:05:08 2013 +0200
+++ b/app/controller/Proben.js	Thu Aug 15 14:07:35 2013 +0200
@@ -88,8 +88,6 @@
     editItem: function(grid, record) {
         console.log('Editing Probe');
         var id = record.get('probeId');
-        var view = Ext.widget('probenedit', {modelId: id});
-
         // Load Zusatzwerte
         var pstore = this.getProbenzusatzwerteStore();
         pstore.load();
@@ -120,6 +118,7 @@
                 probeId: id
             }
         });
+        var view = Ext.widget('probenedit', {modelId: id});
         console.log("Loaded Probe with ID " + record.getId()); //outputs ID
     },
     createSuccess: function(form, record, response) {

http://lada.wald.intevation.org