summaryrefslogtreecommitdiff
path: root/wikipedia/EndlessWikipedia.js
diff options
context:
space:
mode:
authorNick Isaacs <nick@endlessm.com>2013-08-15 14:40:09 -0700
committerNick Isaacs <nick@endlessm.com>2013-08-21 14:29:05 -0700
commit34deb37e1a26cb8817bf86ddf23d3600285a4292 (patch)
treef827b8ab8735baea17ffd0d207375baad5f1be79 /wikipedia/EndlessWikipedia.js
parent973b40e1962fa462bc3d477ca2c6ef10588c8d24 (diff)
Can add articles to the main category.
If there are articles for an app's main category, then it becomes clickable and acts like any other category. If there are no articles for a category, it isn't cilckable and has no hover animations. We no longer use the Title Label View since the main category is now a category button like any other. [endlessm/eos-sdk#259]
Diffstat (limited to 'wikipedia/EndlessWikipedia.js')
-rw-r--r--wikipedia/EndlessWikipedia.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/wikipedia/EndlessWikipedia.js b/wikipedia/EndlessWikipedia.js
index 25df16c..2767e61 100644
--- a/wikipedia/EndlessWikipedia.js
+++ b/wikipedia/EndlessWikipedia.js
@@ -10,6 +10,7 @@ this.ArticleList = imports.wikipedia.ArticleList.ArticleList;
this.WikipediaWebView = imports.wikipedia.WikipediaWebView.WikipediaWebView;
const STYLE_CLASS_TITLE = 'title';
+const STYLE_CLASS_MAIN = 'main-element';
const STYLE_CLASS_PREBUILT = 'prebuilt';
const STYLE_CLASS_CATEGORY = 'category';
const STYLE_CLASS_ARTICLE = 'article';