summaryrefslogtreecommitdiffstats
path: root/js/directive/NewsArticleActions.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/directive/NewsArticleActions.js')
-rw-r--r--js/directive/NewsArticleActions.js7
1 files changed, 3 insertions, 4 deletions
diff --git a/js/directive/NewsArticleActions.js b/js/directive/NewsArticleActions.js
index 516fd3a00..15116791e 100644
--- a/js/directive/NewsArticleActions.js
+++ b/js/directive/NewsArticleActions.js
@@ -12,7 +12,8 @@ app.directive('newsArticleActions', function () {
return {
restrict: 'A',
scope: {
- newsArticleActions: '='
+ newsArticleActions: '=',
+ noPlugins: '='
},
link: function (scope, elem) {
var plugins = News.getArticleActionPlugins();
@@ -21,9 +22,7 @@ app.directive('newsArticleActions', function () {
plugins[i](elem, scope.newsArticleActions);
}
- if (plugins.length === 0) {
- $('#app-content .more').hide();
- }
+ scope.noPlugins = plugins.length === 0;
}
};
});