From c2bfb2babca9ad97ee419a7a388fff615f7f93d0 Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Fri, 14 Sep 2012 17:59:12 +0200 Subject: small mispell fix --- js/menu.js | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'js') diff --git a/js/menu.js b/js/menu.js index 4ee79cb8d..cd2e52d74 100644 --- a/js/menu.js +++ b/js/menu.js @@ -346,11 +346,9 @@ var News = News || {}; this._activeFeedId = this._$activeFeed.data('id'); this._activeFeedType = this._listItemToMenuNodeType(this._$activeFeed); - // set timeout to avoid racecondition error - // this is very annoying on start, do we need it? - /*setTimeout(function(){ + setTimeout(function(){ self._updateUnreadCountAll(); - }, 1000);*/ + }, 3000); this.triggerHideRead(); }; @@ -636,9 +634,10 @@ var News = News || {}; 'feedurl':feedUrl, 'folderid':folderId }; - $.post(OC.filePath('news', 'ajax', 'updatefeed.php'), data, function(jsondata){ - if(jsondata.status == 'success'){ - var newUnreadCount = jsondata.data.unreadcount; + $.post(OC.filePath('news', 'ajax', 'updatefeed.php'), data, function(jsonData){ + console.log(jsonData); + if(jsonData.status == 'success'){ + var newUnreadCount = jsonData.data.unreadcount; // FIXME: starred items should also be set self._setUnreadCount(MenuNodeType.Feed, feedId, newUnreadCount); } else { -- cgit v1.2.3