From d6e5a8f02c7481e214a4a2ee7c6d7a9b7e3a2b45 Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Tue, 14 Aug 2012 15:52:27 +0200 Subject: reload feed on filter change --- ajax/usersettings.php | 5 ++++- js/news.js | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/ajax/usersettings.php b/ajax/usersettings.php index f9657f4a9..c01e8e35d 100644 --- a/ajax/usersettings.php +++ b/ajax/usersettings.php @@ -15,4 +15,7 @@ OCP\JSON::checkLoggedIn(); OCP\JSON::checkAppEnabled('news'); OCP\JSON::callCheck(); -// TODO: receive and save user settings \ No newline at end of file +// TODO: receive and save user settings + + +OCP\JSON::success(); \ No newline at end of file diff --git a/js/news.js b/js/news.js index 1cfbb7853..bf1f36ad4 100644 --- a/js/news.js +++ b/js/news.js @@ -262,7 +262,7 @@ News={ $.post(OC.filePath('news', 'ajax', 'usersettings.php'), data, function(jsondata){ if(jsondata.status == 'success'){ // TODO - var currentFeed = rightcontent.attr('data-id'); + var currentFeed = $('#rightcontent').data('id'); News.Feed.load(currentFeed); } else { //TODO -- cgit v1.2.3