Pman.Dialog.CoreNotifyRecur.bjs
[Pman.Core] / Pman.Dialog.CoreNotifyRecur.js
index 165ae7d..22034fa 100644 (file)
@@ -236,15 +236,16 @@ Pman.Dialog.CoreNotifyRecur = {
                                 {
                                     xtype: 'Button',
                                     xns: Roo.Toolbar,
-                                    text : "Delete",
-                                    cls : 'x-btn-text-icon',
-                                    icon : rootURL + '/Pman/templates/images/trash.gif',
                                     listeners : {
                                         click : function()
                                         {
-                                             Pman.genericDelete(_this, 'core_notify_recur'); 
+                                             var s = _this.grid.getSelectionModel().getSelected();
+                                             Roo.log(s);
                                         }
-                                    }
+                                    },
+                                    cls : 'x-btn-text-icon',
+                                    text : "Delete",
+                                    icon : rootURL + '/Pman/templates/images/trash.gif'
                                 }
                             ]
                         },
@@ -312,6 +313,7 @@ Pman.Dialog.CoreNotifyRecur = {
                                         
                                     
                                     }
+                                    r.data[this.name + '_name'] = '';
                                     return String.format('{0}', r.data.freq_day_name || v); 
                                     
                                 },
@@ -374,13 +376,13 @@ Pman.Dialog.CoreNotifyRecur = {
                                             }
                                         },ci.editor.field);
                                 
-                                        
+                                         r.data[this.name + '_name'] = tv.join(', ');
                                         return String.format('{0}',tv.join(', '));
                                 
                                         
                                     
                                     }
-                                    
+                                        r.data[this.name + '_name'] = '';
                                     return String.format('{0}', r.data.freq_hour_name || v); 
                                     
                                 },