Pman.Dialog.CoreNotifyRecur.bjs
[Pman.Core] / Pman.Dialog.CoreNotifyRecur.bjs
index 8649442..e86a3b9 100644 (file)
@@ -34,7 +34,7 @@
    "xtype" : "LayoutDialog",
    "width" : 800,
    "$ xns" : "Roo",
-   "resizable" : false,
+   "resizable" : true,
    "height" : 550,
    "items" : [
     {
@@ -59,6 +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    if(!d || d.data.id * 1 < 1){\n        return;\n    }\n    \n    Pman.Dialog.CoreNotifyRecurKeywords.show({id : d.data.id}, function(res){\n        _this.grid.ds.load({});\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}"
        },
          "xtype" : "ColumnModel",
          "header" : "Keywords",
          "width" : 75,
-         "$ renderer" : "function(v) { return String.format('{0}', v ? v : ''); }",
+         "$ renderer" : "function(v,x,r) { \n    return String.format('{0}', v ? r.data.keywords : ''); \n}",
          "$ xns" : "Roo.grid",
          "* prop" : "colModel[]",
-         "dataIndex" : "last_event_id"
+         "dataIndex" : "keyword_filters"
         }
        ]
       }