diff options
-rw-r--r-- | ajax/usersettings.php | 5 | ||||
-rw-r--r-- | 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 |