Reader/Feed.bjs
authorAlan Knowles <alan@roojs.com>
Thu, 12 May 2016 07:00:28 +0000 (15:00 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 12 May 2016 07:00:28 +0000 (15:00 +0800)
Reader/Feed.js
Reader/templates/Feed.html

Reader/Feed.bjs
Reader/Feed.js

index 716dc40..454f36f 100644 (file)
@@ -22,7 +22,7 @@
    "items" : [
     {
      "listeners" : {
-      "click" : "function (_self, e)\n{\n  if (this.state == 'READING') { \n        _this.table.show(); // hopefully...\n        _this.articleCtr.show();\n    \n    }\n}"
+      "click" : "function (_self, e)\n{\n  if (_this.table.el.hasClass('hidden')) { \n        _this.table.show(); // hopefully...\n        _this.articleCtr.show();\n    }\n}"
      },
      "String tag" : "div",
      "xtype" : "Element",
index 73e137d..430a879 100644 (file)
@@ -41,10 +41,9 @@ Feed = new Roo.XComponent({
      listeners : {
       click : function (_self, e)
        {
-         if (this.state == 'READING') { 
+         if (_this.table.el.hasClass('hidden')) { 
                _this.table.show(); // hopefully...
                _this.articleCtr.show();
-           
            }
        }
      }