diff options
Diffstat (limited to 'js/menu.js')
-rw-r--r-- | js/menu.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/js/menu.js b/js/menu.js index 0980e4ca1..026c06297 100644 --- a/js/menu.js +++ b/js/menu.js @@ -866,12 +866,23 @@ var News = News || {}; return; } + // adjust unreadcount for the old folder + var feedUnreadCount = self._unreadCount[feedId]; + if(fromFolderId !== 0){ + self._setUnreadCount(MenuNodeType.Feed, feedId, 0); + } + if($dropped.hasClass(self._menuNodeTypeToClass(MenuNodeType.Folder))){ $dropped.children('ul').append($dragged[0]); } else { $dropped.append($dragged[0]); } + // adjust unreadcount for the new folder + if(folderId !== 0){ + self._setUnreadCount(MenuNodeType.Feed, feedId, feedUnreadCount); + } + self._resetOpenFolders(); self._moveFeedToFolder(feedId, folderId); |