diff options
Diffstat (limited to 'js')
-rw-r--r-- | js/items.js | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/js/items.js b/js/items.js index 4a71094b6..48ac53bdb 100644 --- a/js/items.js +++ b/js/items.js @@ -396,6 +396,7 @@ var News = News || {}; if(i === 0){ item.setViewed(true); } + // show items if(News.Objects.Menu.isShowAll() || type === News.MenuNodeType.Starred || !item.isRead()){ @@ -403,6 +404,12 @@ var News = News || {}; $itemHtml.removeClass('keep_unread'); $html.append($itemHtml); } + // hide the additional feed anme if its just a normal feed + if(type === News.MenuNodeType.Feed){ + item.showAdditionalFeedTitle(false); + } else { + item.showAdditionalFeedTitle(true); + } } return $html; }; @@ -492,6 +499,18 @@ var News = News || {}; } }; + + /** + * @param show if true, show the feedtitle on the left side of the author + */ + Item.prototype.showAdditionalFeedTitle = function(show) { + if(show){ + this._$html.find('.from_feed').show(); + } else { + this._$html.find('.from_feed').hide(); + } + }; + /** * @return true if locked, otherwise false */ |