summaryrefslogtreecommitdiffstats
path: root/js/app/controllers/feedcontroller.coffee
diff options
context:
space:
mode:
authorBernhard Posselt <nukeawhale@gmail.com>2013-04-26 12:08:07 +0200
committerBernhard Posselt <nukeawhale@gmail.com>2013-04-26 12:08:07 +0200
commit01210ea081498b511b29ac76f7b55e5032d45e50 (patch)
treef8543d26b5c833f10d85e1966812b2d230eb9835 /js/app/controllers/feedcontroller.coffee
parentf987751d8c5c7a3ee660411afb9d01e6a822aed5 (diff)
format unread count properly
Diffstat (limited to 'js/app/controllers/feedcontroller.coffee')
-rw-r--r--js/app/controllers/feedcontroller.coffee5
1 files changed, 3 insertions, 2 deletions
diff --git a/js/app/controllers/feedcontroller.coffee b/js/app/controllers/feedcontroller.coffee
index 2d1147b23..41e4fa07d 100644
--- a/js/app/controllers/feedcontroller.coffee
+++ b/js/app/controllers/feedcontroller.coffee
@@ -55,8 +55,9 @@ ActiveFeed, FeedType, $window) ->
# the title is some kind of exception since its always there
# and it has nothing to do with the body structure
if count > 0
- count = @_unreadCountFormatter(count)
- @_$window.document.title = 'News (' + count + ') | ownCloud'
+ titleCount = @_unreadCountFormatter(count)
+ @_$window.document.title =
+ 'News (' + titleCount + ') | ownCloud'
else
@_$window.document.title = 'News | ownCloud'
return count