Pman.Dialog.CoreNotifyRecur.bjs
authorAlan Knowles <alan@akbkhome.com>
Wed, 16 May 2012 10:35:19 +0000 (18:35 +0800)
committerAlan Knowles <alan@akbkhome.com>
Wed, 16 May 2012 10:35:19 +0000 (18:35 +0800)
Pman.Dialog.CoreNotifyRecur.js

Pman.Dialog.CoreNotifyRecur.bjs
Pman.Dialog.CoreNotifyRecur.js

index 68e3e40..72a063c 100644 (file)
                                             "xtype": "Fill"
                                         },
                                         {
-                                            "text": "Delete",
-                                            "cls": "x-btn-text-icon",
-                                            "|icon": "rootURL + '/Pman/templates/images/trash.gif'",
-                                            "xtype": "Button",
                                             "listeners": {
-                                                "|click": "function()\n{\n     Pman.genericDelete(_this, 'core_notify_recur'); \n}\n        "
+                                                "|click": "function()\n{\n     var s = _this.grid.getSelectionModel().getSelected();\n     Roo.log(s);\n}\n        "
                                             },
+                                            "cls": "x-btn-text-icon",
+                                            "text": "Delete",
+                                            "xtype": "Button",
+                                            "|icon": "rootURL + '/Pman/templates/images/trash.gif'",
                                             "|xns": "Roo.Toolbar"
                                         }
                                     ]
index 1cf9e21..22034fa 100644 (file)
@@ -236,15 +236,16 @@ Pman.Dialog.CoreNotifyRecur = {
                                 {
                                     xtype: 'Button',
                                     xns: Roo.Toolbar,
-                                    text : "Delete",
-                                    cls : 'x-btn-text-icon',
-                                    icon : rootURL + '/Pman/templates/images/trash.gif',
                                     listeners : {
                                         click : function()
                                         {
-                                             Pman.genericDelete(_this, 'core_notify_recur'); 
+                                             var s = _this.grid.getSelectionModel().getSelected();
+                                             Roo.log(s);
                                         }
-                                    }
+                                    },
+                                    cls : 'x-btn-text-icon',
+                                    text : "Delete",
+                                    icon : rootURL + '/Pman/templates/images/trash.gif'
                                 }
                             ]
                         },