diff options
Diffstat (limited to 'js/app/controllers/feedcontroller.coffee')
-rw-r--r-- | js/app/controllers/feedcontroller.coffee | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/js/app/controllers/feedcontroller.coffee b/js/app/controllers/feedcontroller.coffee index 41e4fa07d..43488ddba 100644 --- a/js/app/controllers/feedcontroller.coffee +++ b/js/app/controllers/feedcontroller.coffee @@ -56,10 +56,15 @@ ActiveFeed, FeedType, $window) -> # and it has nothing to do with the body structure if count > 0 titleCount = @_unreadCountFormatter(count) - @_$window.document.title = - 'News (' + titleCount + ') | ownCloud' + title = 'News (' + titleCount + ') | ownCloud' else - @_$window.document.title = 'News | ownCloud' + title = 'News | ownCloud' + + # only update title when it changed to prevent highlighting the + # tab + if @_$window.document.title != title + @_$window.document.title = title + return count @_$scope.isAddingFolder = => |