summaryrefslogtreecommitdiffstats
path: root/js
diff options
context:
space:
mode:
authorBernhard Posselt <nukeawhale@gmail.com>2012-09-14 17:59:12 +0200
committerBernhard Posselt <nukeawhale@gmail.com>2012-09-14 17:59:12 +0200
commitc2bfb2babca9ad97ee419a7a388fff615f7f93d0 (patch)
treecc674f761751256162dd551ad2aa67f2ed0af764 /js
parentdafb2543fd950e90854f50eb5d087dffbe522cc4 (diff)
small mispell fix
Diffstat (limited to 'js')
-rw-r--r--js/menu.js13
1 files changed, 6 insertions, 7 deletions
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 {