examples/grid/viewpanel.js
authorChris <chris@roojs.com>
Mon, 21 Oct 2013 09:28:00 +0000 (17:28 +0800)
committerChris <chris@roojs.com>
Mon, 21 Oct 2013 09:28:00 +0000 (17:28 +0800)
examples/grid/viewpanel.js

index 206188b..2696f9f 100644 (file)
@@ -102,16 +102,7 @@ Roo.onReady(function(){
     var tb = new Roo.Toolbar(gridHead, [{
         text: 'Add Plant',
         handler : function(){
-            var p = new Plant({
-                common: 'New Plant 1',
-                light: 'Mostly Shade',
-                price: 0,
-                availDate: new Date(),
-                indoor: false
-            });
-            grid.stopEditing();
-            ds.insert(0, p);
-            grid.startEditing(0, 0);
+            Roo.log('clicked');
         }
     }]);