Pman.Dialog.AdminEnumMerge.bjs
[Pman.Admin] / Pman.Tab.AdminNotify.js
index 9467eb1..d334228 100644 (file)
@@ -42,6 +42,7 @@ Pman.Tab.AdminNotify = new Roo.XComponent({
    var _this = this;
    var MODULE = this;
    return {
+   background : false,
    region : 'center',
    title : _this._strings['bf1cb7e2a337a5e2ebf614009cbce9cc'] /* Current Notifications */,
    xns : Roo,
@@ -265,10 +266,10 @@ Pman.Tab.AdminNotify = new Roo.XComponent({
           '|xns' : 'Roo.form',
           xtype : 'DateField',
           listeners : {
-           render : function (_self)
-            {
-                _this.fromDateSel = _self;
-               //_self.setValue(  new Date() );
+           render : function (_self)\r
+            {\r
+                _this.fromDateSel = _self;\r
+               //_self.setValue(  new Date() );\r
             },
            select : function (combo, date)
             {
@@ -294,10 +295,10 @@ Pman.Tab.AdminNotify = new Roo.XComponent({
           '|xns' : 'Roo.form',
           xtype : 'DateField',
           listeners : {
-           render : function (_self)
-            {
-                _this.toDateSel = _self;
-               //_self.setValue(  new Date() );
+           render : function (_self)\r
+            {\r
+                _this.toDateSel = _self;\r
+               //_self.setValue(  new Date() );\r
             },
            select : function (combo, date)
             {
@@ -560,7 +561,12 @@ Pman.Tab.AdminNotify = new Roo.XComponent({
                   this.viewPanel.setContent("Nothing Selected");
                   return;
               }
-              var id = this.getSelected().data.id;
+              var id = this.getSelected().data.event_id;
+              if (id *1 < 0) {
+              
+                  this.viewPanel.setContent("No Event for this line");    
+                  return;
+              }
               _this.viewPanel.load( { url : baseURL + "/Admin/EventView/" + id + ".html" });
               
           }