From d5944d2b6158a352e164dddc76753ca425421aa2 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Wed, 16 May 2012 18:35:19 +0800 Subject: [PATCH] Pman.Dialog.CoreNotifyRecur.bjs Pman.Dialog.CoreNotifyRecur.js --- Pman.Dialog.CoreNotifyRecur.bjs | 10 +++++----- Pman.Dialog.CoreNotifyRecur.js | 11 ++++++----- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/Pman.Dialog.CoreNotifyRecur.bjs b/Pman.Dialog.CoreNotifyRecur.bjs index 68e3e40d..72a063c7 100644 --- a/Pman.Dialog.CoreNotifyRecur.bjs +++ b/Pman.Dialog.CoreNotifyRecur.bjs @@ -99,13 +99,13 @@ "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" } ] diff --git a/Pman.Dialog.CoreNotifyRecur.js b/Pman.Dialog.CoreNotifyRecur.js index 1cf9e21b..22034fa8 100644 --- a/Pman.Dialog.CoreNotifyRecur.js +++ b/Pman.Dialog.CoreNotifyRecur.js @@ -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' } ] }, -- 2.39.2