Pman.Tab.AdminNotify.bjs
authorAlan Knowles <alan@roojs.com>
Mon, 11 Apr 2016 06:29:52 +0000 (14:29 +0800)
committerAlan Knowles <alan@roojs.com>
Mon, 11 Apr 2016 06:29:52 +0000 (14:29 +0800)
Pman.Tab.AdminNotify.js

Pman.Tab.AdminNotify.bjs
Pman.Tab.AdminNotify.js

index d1655db..151b6c4 100644 (file)
             }
            ]
           },
+          {
+           "listeners" : {
+            "afterselectionchange" : "function (_self)\n{\n    // load detail log in _this.viewPanel;\n    if (!this.getSelected()) {\n        this.viewPanel.setContent(\"Nothing Selected\");\n        return;\n    }\n    var id = this.getSelected().data.id;\n    _this.viewPanel.load( { url : baseURL + \"/Admin/EventView/\" + id + \".html\" });\n    \n}"
+           },
+           "xtype" : "RowSelectionModel",
+           "singleSelect" : true,
+           "$ xns" : "Roo.grid",
+           "* prop" : "sm"
+          },
           {
            "pageSize" : 25,
            "xtype" : "PagingToolbar",
index cc06eee..9467eb1 100644 (file)
@@ -547,6 +547,25 @@ 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.id;
+              _this.viewPanel.load( { url : baseURL + "/Admin/EventView/" + id + ".html" });
+              
+          }
+        }
+       },
        colModel : [
         {
          dataIndex : 'id',