diff app/controller/grid/Messung.js @ 628:e3cdc36cbcae

merged
author Dustin Demuth <dustin@intevation.de>
date Mon, 16 Mar 2015 12:40:06 +0100
parents ee92e352be20
children 71e8b84d7829
line wrap: on
line diff
--- a/app/controller/grid/Messung.js	Mon Mar 16 12:38:56 2015 +0100
+++ b/app/controller/grid/Messung.js	Mon Mar 16 12:40:06 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