Skip to content
This repository has been archived by the owner on Jul 6, 2020. It is now read-only.

Commit

Permalink
version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
Bernhard Posselt committed Sep 20, 2015
1 parent 0d68f95 commit a2232bb
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 14 deletions.
2 changes: 1 addition & 1 deletion appinfo/checksum.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion appinfo/info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<author>Bernhard Posselt, Alessandro Cosentino, Jan-Christoph Borchardt</author>
<category>multimedia</category>
<licence>AGPL</licence>
<version>6.0.3</version>
<version>6.0.4</version>
<namespace>News</namespace>

<!-- resources -->
Expand Down
7 changes: 3 additions & 4 deletions js/build/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -2661,7 +2661,8 @@ app.directive('newsArticleActions', function () {
return {
restrict: 'A',
scope: {
newsArticleActions: '='
newsArticleActions: '=',
noPlugins: '='
},
link: function (scope, elem) {
var plugins = News.getArticleActionPlugins();
Expand All @@ -2670,9 +2671,7 @@ app.directive('newsArticleActions', function () {
plugins[i](elem, scope.newsArticleActions);
}

if (plugins.length === 0) {
$('#app-content .more').hide();
}
scope.noPlugins = plugins.length === 0;
}
};
});
Expand Down
2 changes: 1 addition & 1 deletion js/build/app.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/build/app.min.js.map

Large diffs are not rendered by default.

7 changes: 3 additions & 4 deletions js/directive/NewsArticleActions.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ app.directive('newsArticleActions', function () {
return {
restrict: 'A',
scope: {
newsArticleActions: '='
newsArticleActions: '=',
noPlugins: '='
},
link: function (scope, elem) {
var plugins = News.getArticleActionPlugins();
Expand All @@ -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;
}
};
});
4 changes: 2 additions & 2 deletions templates/part.content.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,10 @@ class="icon-toggle keep-unread"
?>">
</button>
</li>
<li class="util more" news-stop-propagation>
<li class="util more" news-stop-propagation ng-hide="noPlugins">
<button class="icon-more" news-toggle-show="#actions-{{item.id}}"></button>
<div class="article-actions" id="actions-{{item.id}}">
<ul news-article-actions="item"><ul>
<ul news-article-actions="item" no-plugins="noPlugins"><ul>
</div>
</li>
</ul>
Expand Down

0 comments on commit a2232bb

Please sign in to comment.