summaryrefslogtreecommitdiffstats
path: root/js
diff options
context:
space:
mode:
authorBernhard Posselt <nukeawhale@gmail.com>2013-04-18 16:39:02 +0200
committerBernhard Posselt <nukeawhale@gmail.com>2013-04-18 16:39:02 +0200
commit97452a5f5e98e33981eeac1eb89402fc13b13cb2 (patch)
treea4750a2e554729a16406f389a8eb5cfd20ecfc67 /js
parentc776d489278fdd88843c8cf235b77f6d00e25e13 (diff)
also format unreadcount in the title
Diffstat (limited to 'js')
-rw-r--r--js/app/controllers/feedcontroller.coffee1
-rw-r--r--js/public/app.js1
2 files changed, 2 insertions, 0 deletions
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 <http://www.gnu.org/licenses/>.
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';