Fix #6624 - import expiried templates
[Pman.Admin] / Pman.Tab.AdminNotify.js
index 74bf5b9..fcf5471 100644 (file)
@@ -46,6 +46,12 @@ Pman.Tab.AdminNotify = new Roo.XComponent({
    background : false,
    region : 'center',
    title : _this._strings['bf1cb7e2a337a5e2ebf614009cbce9cc'] /* Current Notifications */,
+   listeners : {
+    render : function (_self)
+     {
+         _this.nest = this;
+     }
+   },
    xns : Roo,
    '|xns' : 'Roo',
    layout : {
@@ -358,7 +364,10 @@ Pman.Tab.AdminNotify = new Roo.XComponent({
               
               if (!_this.toggleBtn.pressed) {
                   options.params['event_id'] = 0;
+              } else  {
+                  options.params['!event_id'] = 0;
               }
+              
               if (!_this.personCombo) {
                   return false;
               }
@@ -560,9 +569,9 @@ Pman.Tab.AdminNotify = new Roo.XComponent({
                   return;
               }
               var id = this.getSelected().data.event_id;
-              if (id *1 < 0) {
+              if (id *1 < 1) {
               
-                  this.viewPanel.setContent("No Event for this line");    
+                 _this.viewPanel.setContent("No Event for this line");    
                   return;
               }
               _this.viewPanel.load( { url : baseURL + "/Admin/EventView/" + id + ".html" });
@@ -593,7 +602,7 @@ Pman.Tab.AdminNotify = new Roo.XComponent({
              return String.format('<span qtip="{0}">{1}</span>', v, vv ); 
          },
          sortable : true,
-         width : 100,
+         width : 70,
          xns : Roo.grid,
          '|xns' : 'Roo.grid'
         },
@@ -603,7 +612,7 @@ Pman.Tab.AdminNotify = new Roo.XComponent({
          header : _this._strings['0f6d01b16d57911731aa44b94dbfefcc'] /* Act when */,
          renderer : function(v) { return String.format('{0}', v ? v.format('d/M/Y H:i:s') : ''); },
          sortable : true,
-         width : 150,
+         width : 130,
          xns : Roo.grid,
          '|xns' : 'Roo.grid'
         },
@@ -618,7 +627,7 @@ Pman.Tab.AdminNotify = new Roo.XComponent({
               return String.format('{0}', v ? v.format('d/M/Y H:i:s') : '');
            },
          sortable : true,
-         width : 150,
+         width : 130,
          xns : Roo.grid,
          '|xns' : 'Roo.grid'
         },
@@ -668,7 +677,7 @@ Pman.Tab.AdminNotify = new Roo.XComponent({
          dataIndex : 'msgid',
          header : _this._strings['12832b4def6eb0b6105b3d11e16066ea'] /* Msgid */,
          renderer : function(v) { return String.format('{0}', v); },
-         width : 200,
+         width : 50,
          xns : Roo.grid,
          '|xns' : 'Roo.grid'
         },