Pman.Dialog.CoreNotifyRecur.bjs
[Pman.Core] / Pman.Dialog.CoreNotifyRecur.js
index 8616aa3..426a3fb 100644 (file)
@@ -705,7 +705,7 @@ Pman.Dialog.CoreNotifyRecur = {
          },
 {
           '|xns' : 'Roo.grid',
-          dataIndex : 'last_event_id',
+          dataIndex : 'keyword_filters',
           header : _this._strings['867343577fa1f33caa632a19543bd252'],
           renderer : function(v) { return String.format('{0}', v ? v : ''); },
           width : 75,
@@ -720,6 +720,20 @@ Pman.Dialog.CoreNotifyRecur = {
          },
         cellclick : function (_self, rowIndex, columnIndex, e)
          {
+             var di = this.colModel.getDataIndex(columnIndex);
+             if (di != 'keyword_filters') {
+                 return;
+             }
+             
+             var d = this.ds.getAt(rowIndex);
+             
+             if(!d || d.data.id * 1 < 1){
+                 return;
+             }
+             
+             Pman.Dialog.CoreNotifyRecurKeywords.show({id : d.data.id}, function(res){
+                 _this.grid.ds.load({});
+             });
              
          },
         render : function()