From 0029feaf2df09e6e4d02367507ae6a4b21e9a0ad Mon Sep 17 00:00:00 2001 From: Edward Date: Mon, 4 May 2015 13:50:17 +0800 Subject: [PATCH] Pman.Dialog.CoreNotifyRecur.bjs Pman.Dialog.CoreNotifyRecur.js --- Pman.Dialog.CoreNotifyRecur.bjs | 2 +- Pman.Dialog.CoreNotifyRecur.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Pman.Dialog.CoreNotifyRecur.bjs b/Pman.Dialog.CoreNotifyRecur.bjs index ac960a3a..1d22a1be 100644 --- a/Pman.Dialog.CoreNotifyRecur.bjs +++ b/Pman.Dialog.CoreNotifyRecur.bjs @@ -59,7 +59,7 @@ "items" : [ { "listeners" : { - "cellclick" : "function (_self, rowIndex, columnIndex, e)\n{\n var di = this.colModel.getDataIndex(columnIndex);\n if (di != 'keyword_filters') {\n return;\n }\n \n var d = this.ds.getAt(rowIndex);\n \n Roo.log(d);\n \n return;\n \n Pman.Dialog.CoreNotifyRecurKeywords.show({id : d.data.id}, function(res){\n Roo.log(res);\n });\n \n}", + "cellclick" : "function (_self, rowIndex, columnIndex, e)\n{\n var di = this.colModel.getDataIndex(columnIndex);\n if (di != 'keyword_filters') {\n return;\n }\n \n var d = this.ds.getAt(rowIndex);\n \n if(!d || d.data.id * 1 < 1){\n return;\n }\n \n Pman.Dialog.CoreNotifyRecurKeywords.show({id : d.data.id}, function(res){\n Roo.log(res);\n });\n \n}", "|render" : "function() \n{\n _this.grid = this; \n //_this.dialog = Pman.Dialog.FILL_IN\n if (_this.panel.active) {\n // this.footer.onClick('first');\n }\n}", "afteredit" : "function (e)\n{\n e.record.commit();\n}" }, diff --git a/Pman.Dialog.CoreNotifyRecur.js b/Pman.Dialog.CoreNotifyRecur.js index e17b5026..46871bfd 100644 --- a/Pman.Dialog.CoreNotifyRecur.js +++ b/Pman.Dialog.CoreNotifyRecur.js @@ -727,9 +727,9 @@ Pman.Dialog.CoreNotifyRecur = { var d = this.ds.getAt(rowIndex); - Roo.log(d); - - return; + if(!d || d.data.id * 1 < 1){ + return; + } Pman.Dialog.CoreNotifyRecurKeywords.show({id : d.data.id}, function(res){ Roo.log(res); -- 2.39.2