Pman.Tab.AdminEnum.bjs
[Pman.Admin] / Pman.Tab.AdminNotify.js
index 9559177..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,
@@ -58,6 +59,7 @@ Pman.Tab.AdminNotify = new Roo.XComponent({
     },
     south : {
      autoScroll : true,
+     collapsedTitle : 'View Details',
      collapsible : true,
      height : 150,
      split : true,
@@ -264,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)
             {
@@ -293,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)
             {
@@ -546,6 +548,30 @@ Pman.Tab.AdminNotify = new Roo.XComponent({
          xtype : 'JsonReader'
         }
        },
+       sm : {
+        singleSelect : true,
+        xns : Roo.grid,
+        '|xns' : 'Roo.grid',
+        xtype : 'RowSelectionModel',
+        listeners : {
+         afterselectionchange : function (_self)
+          {
+              // load detail log in _this.viewPanel;
+              if (!this.getSelected()) {
+                  this.viewPanel.setContent("Nothing Selected");
+                  return;
+              }
+              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" });
+              
+          }
+        }
+       },
        colModel : [
         {
          dataIndex : 'id',