summaryrefslogtreecommitdiffstats
path: root/js/news.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/news.js')
-rw-r--r--js/news.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/js/news.js b/js/news.js
index a71b07128..4cc0864f9 100644
--- a/js/news.js
+++ b/js/news.js
@@ -125,7 +125,9 @@ News={
$('#addfeed_dialog').dialog('destroy').remove();
var rightcontent = $('div.rightcontent');
rightcontent.empty();
+ rightcontent.attr('data-id', jsondata.data.feedid);
rightcontent.html(jsondata.data.part_items);
+ rightcontent.find('ul.accordion').before(jsondata.data.part_newfeed);
setupRightContent();
}
});
@@ -147,8 +149,8 @@ News={
$('li.feeds_list[data-id="'+jsondata.data.feedid+'"]').remove();
var rightcontent = $('div.rightcontent');
if(rightcontent.attr('data-id') == feedid) {
- rightcontent.empty();
- rightcontent.html(jsondata.data.part_items);
+ rightcontent.find('div#feedadded').remove();
+ rightcontent.find('ul.accordion').before(jsondata.data.part_items);
}
}
else{