diff app/view/messwerte/Create.js @ 270:0d6552bb28ea

Add cancel Button to the editproben window and only show save button if the form is actually writeable.
author Torsten Irländer <torsten.irlaender@intevation.de>
date Tue, 06 Aug 2013 14:33:14 +0200
parents 46cc69277b8e
children 11f8a2c1b610
line wrap: on
line diff
--- a/app/view/messwerte/Create.js	Mon Jul 29 15:53:24 2013 +0200
+++ b/app/view/messwerte/Create.js	Tue Aug 06 14:33:14 2013 +0200
@@ -8,8 +8,6 @@
     modal: true,
 
     initComponent: function() {
-        var form = Ext.create('Lada.view.messwerte.CreateForm', this.initialConfig);
-        this.items = [form];
         this.buttons = [
             {
                 text: 'Speichern',
@@ -17,6 +15,8 @@
                 action: 'save'
             }
         ];
+        var form = Ext.create('Lada.view.messwerte.CreateForm', this.initialConfig);
+        this.items = [form];
         this.callParent();
     }
 });

http://lada.wald.intevation.org