diff app/controller/grid/Messung.js @ 622:ee92e352be20

Open messung create window on button click.
author Raimund Renkert <raimund.renkert@intevation.de>
date Mon, 16 Mar 2015 12:11:34 +0100
parents 825973ca386f
children 71e8b84d7829
line wrap: on
line diff
--- a/app/controller/grid/Messung.js	Mon Mar 16 12:10:31 2015 +0100
+++ b/app/controller/grid/Messung.js	Mon Mar 16 12:11:34 2015 +0100
@@ -38,9 +38,13 @@
         win.initData();
     },
 
-    add: function() {
-        // TODO
-        console.log('add');
+    add: function(button) {
+        var probe = button.up('window').record;
+        var win = Ext.create('Lada.view.window.MessungCreate', {
+            record: probe
+        });
+        win.show();
+        win.initData();
     },
 
     remove: function(button) {
@@ -59,6 +63,7 @@
                         }
                     });
                 }
-        });
+            }
+        );
     }
 });

http://lada.wald.intevation.org