Pman.Tab.AdminNotify.bjs
[Pman.Admin] / Pman.Tab.AdminNotify.js
index eae245b..4d6d8aa 100644 (file)
@@ -240,6 +240,12 @@ Pman.Tab.AdminNotify = new Roo.XComponent({
                         {
                             xtype: 'ComboBox',
                             xns: Roo.form,
+                            listeners : {
+                                select : function (combo, record, index)
+                                {
+                                   (function() { _this.grid.footer.onClick('first'); }).defer(100);
+                                }
+                            },
                             allowBlank : true,
                             displayField : 'person_id_name',
                             editable : true,
@@ -299,7 +305,7 @@ Pman.Tab.AdminNotify = new Roo.XComponent({
                             listeners : {
                                 click : function()
                                         {
-                                        Pman.genericDelete(_this, 'Ris_partner_type'); 
+                                        Pman.genericDelete(_this, 'core_notify'); 
                                         }
                             },
                             cls : 'x-btn-text-icon',
@@ -380,11 +386,26 @@ Pman.Tab.AdminNotify = new Roo.XComponent({
                         xns: Roo.grid,
                         dataIndex : 'person_id_name',
                         header : 'Who to notify',
-                        width : 200,
+                        width : 100,
                         renderer : function(v,x,r) {
                              return String.format('{0} <u>&lt;{1}&gt;</u>', v, r.data.person_id_email); 
                          }
                     },
+                    {
+                        xtype: 'ColumnModel',
+                        xns: Roo.grid,
+                        dataIndex : 'trigger_event_id',
+                        header : 'Triggered by',
+                        width : 100,
+                        renderer : function(v,x,r) {
+                             return String.format(
+                                    '{0} : {1} {2}', 
+                                    r.data.trigger_event_id_on_table, 
+                                    r.data.trigger_event_id_on_id, 
+                                    r.data.trigger_event_id_remarks
+                                ); 
+                         }
+                    },
                     {
                         xtype: 'ColumnModel',
                         xns: Roo.grid,
@@ -399,7 +420,7 @@ Pman.Tab.AdminNotify = new Roo.XComponent({
                         dataIndex : 'event_id_remarks',
                         header : 'Event',
                         width : 300,
-                        renderer : function(v) { return String.format('{0}', v); }
+                        renderer : function(v) { return String.format('<span qtip="{0}">{0}</span>', v); }
                     }
                 ]
             }