Reader/Feed.bjs
authorAlan Knowles <alan@roojs.com>
Thu, 24 Dec 2015 04:59:48 +0000 (12:59 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 24 Dec 2015 04:59:48 +0000 (12:59 +0800)
Reader/Feed.js
Reader/templates/Feed.html

Reader/Feed.bjs
Reader/Feed.js

index 4e5f87a..8d45c35 100644 (file)
@@ -61,7 +61,7 @@
     {
      "listeners" : {
       "render" : "function (_self)\n{\n    _this.table = this;\n    this.store.load({});\n}",
-      "rowclick" : "function (_self, el, rowIndex, e)\n{\n    var rec = this.store.getAt(rowIndex);\n    Roo.log(rec);\n}"
+      "rowclick" : "function (_self, el, rowIndex, e)\n{\n    //var rec = this.store.getAt(rowIndex);\n    Roo.log(rec);\n    _this.articleCtr.load(rowIndex);\n}"
      },
      "boolean striped" : true,
      "boolean hover" : true,
index e0741ae..8e223d5 100644 (file)
@@ -93,8 +93,9 @@ Feed = new Roo.XComponent({
        },
       rowclick : function (_self, el, rowIndex, e)
        {
-           var rec = this.store.getAt(rowIndex);
+           //var rec = this.store.getAt(rowIndex);
            Roo.log(rec);
+           _this.articleCtr.load(rowIndex);
        }
      },
      store : {