From 97452a5f5e98e33981eeac1eb89402fc13b13cb2 Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Thu, 18 Apr 2013 16:39:02 +0200 Subject: also format unreadcount in the title --- js/app/controllers/feedcontroller.coffee | 1 + js/public/app.js | 1 + 2 files changed, 2 insertions(+) (limited to 'js') diff --git a/js/app/controllers/feedcontroller.coffee b/js/app/controllers/feedcontroller.coffee index 8633845e5..d5975588b 100644 --- a/js/app/controllers/feedcontroller.coffee +++ b/js/app/controllers/feedcontroller.coffee @@ -55,6 +55,7 @@ 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' else @_$window.document.title = 'News | ownCloud' diff --git a/js/public/app.js b/js/public/app.js index f5a062f63..7e4393d94 100644 --- a/js/public/app.js +++ b/js/public/app.js @@ -343,6 +343,7 @@ License along with this library. If not, see . count = _this._subscriptionsBusinessLayer.getUnreadCount(0); if (count > 0) { + count = _this._unreadCountFormatter(count); _this._$window.document.title = 'News (' + count + ') | ownCloud'; } else { _this._$window.document.title = 'News | ownCloud'; -- cgit v1.2.3