diff options
-rw-r--r-- | js/news.js | 4 | ||||
-rw-r--r-- | lib/foldermapper.php | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/js/news.js b/js/news.js index 23380a66f..2647427a8 100644 --- a/js/news.js +++ b/js/news.js @@ -66,7 +66,7 @@ News={ if(folderid > 0){ $('.collapsable_container[data-id="' + folderid + '"] > ul').append(jsondata.data.listfolder); } else { - $('#feeds').append(jsondata.data.listfolder); + $('#feeds > ul').append(jsondata.data.listfolder); } setupFeedList(); transformCollapsableTrigger(); @@ -132,7 +132,7 @@ News={ if(folderid > 0){ $('.collapsable_container[data-id="' + folderid + '"] > ul').append(jsondata.data.listfeed); } else { - $('#feeds').append(jsondata.data.listfeed); + $('#feeds > ul').append(jsondata.data.listfeed); } setupFeedList(); News.Feed.load(jsondata.data.feedid); diff --git a/lib/foldermapper.php b/lib/foldermapper.php index 33a14a0c4..af7d9244a 100644 --- a/lib/foldermapper.php +++ b/lib/foldermapper.php @@ -68,7 +68,7 @@ class FolderMapper { while( $row = $result->fetchRow()){ $folderid = $row['id']; $folder = new Folder($row['name'], $folderid); - $children = self::childrenOf($folderid); + $children = self::childrenOfWithFeeds($folderid); $folder->addChildren($children); $collectionlist[] = $folder; } |