DataObjects/Core_notify_recur.php
[Pman.Core] / Pman.Dialog.CoreNotifyRecur.js
index 455ec00..0908ebc 100644 (file)
@@ -60,7 +60,7 @@ Pman.Dialog.CoreNotifyRecur = {
     '|xns' : 'Roo',
     height : 550,
     modal : true,
-    resizable : false,
+    resizable : true,
     title : _this._strings['c1d32776cd2d2afcd2c45a52f58679f4'],
     width : 800,
     xns : Roo,
@@ -293,7 +293,7 @@ Pman.Dialog.CoreNotifyRecur = {
 
        },
        '|xns' : 'Roo.grid',
-       autoExpandColumn : 'freq_day',
+       autoExpandColumn : 'keyword_filters',
        clicksToEdit : 1,
        loadMask : true,
        xns : Roo.grid,
@@ -514,7 +514,7 @@ Pman.Dialog.CoreNotifyRecur = {
               return String.format('{0}', r.data.freq_day_name || v); 
               
           },
-          width : 100,
+          width : 150,
           xns : Roo.grid,
           xtype : 'ColumnModel',
           items : [
@@ -707,7 +707,9 @@ Pman.Dialog.CoreNotifyRecur = {
           '|xns' : 'Roo.grid',
           dataIndex : 'keyword_filters',
           header : _this._strings['867343577fa1f33caa632a19543bd252'],
-          renderer : function(v) { return String.format('{0}', v ? v : ''); },
+          renderer : function(v,x,r) { 
+              return String.format('{0}', v ? r.data.keywords : ''); 
+          },
           width : 75,
           xns : Roo.grid,
           xtype : 'ColumnModel'
@@ -725,8 +727,14 @@ Pman.Dialog.CoreNotifyRecur = {
                  return;
              }
              
-             Pman.Dialog.CoreNotifyRecurKeywords.show({}, function(res){
-                 Roo.log(res);
+             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({});
              });
              
          },