summaryrefslogtreecommitdiffstats
path: root/ajax
diff options
context:
space:
mode:
authorBernhard Posselt <nukeawhale@gmail.com>2012-08-16 18:52:01 +0200
committerBernhard Posselt <nukeawhale@gmail.com>2012-08-16 18:52:01 +0200
commit0241ac70ab58f00ffadfc3b4c8276f8cc8afd2ac (patch)
treec091de037c249cbdcd60e771e0395d192da4a1d1 /ajax
parent5c58aa537b9f9d22c80387f8e6eefe2551ca9384 (diff)
fixed the show only new items drop down
Diffstat (limited to 'ajax')
-rw-r--r--ajax/usersettings.php11
1 files changed, 10 insertions, 1 deletions
diff --git a/ajax/usersettings.php b/ajax/usersettings.php
index c01e8e35d..9ddd69f6e 100644
--- a/ajax/usersettings.php
+++ b/ajax/usersettings.php
@@ -15,7 +15,16 @@ OCP\JSON::checkLoggedIn();
OCP\JSON::checkAppEnabled('news');
OCP\JSON::callCheck();
-// TODO: receive and save user settings
+switch($_POST['show']){
+ case 'all':
+ $showAll = true;
+ break;
+ default:
+ $showAll = false;
+ break;
+}
+// TODO: receive and save user settings
+OCP\Config::setUserValue(OCP\USER::getUser(), 'news', 'showAll', $showAll);
OCP\JSON::success(); \ No newline at end of file