diff app/view/proben/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 c05fda928b82
children 11f8a2c1b610
line wrap: on
line diff
--- a/app/view/proben/Create.js	Mon Jul 29 15:53:24 2013 +0200
+++ b/app/view/proben/Create.js	Tue Aug 06 14:33:14 2013 +0200
@@ -16,8 +16,12 @@
         this.buttons = [
             {
                 text: 'Speichern',
-                handler: form.commit,
-                scope: form
+                action: 'save',
+            },
+            {
+                text: 'Abbrechen',
+                scope: this,
+                handler: this.close,
             }
         ];
         this.callParent();

http://lada.wald.intevation.org