1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-26 23:51:29 +00:00

add hotkey (f x) to reverse headlines order (closes #262)

This commit is contained in:
Andrew Dolgov
2010-02-18 16:05:35 +03:00
parent fdf47b9d1c
commit 8a3e0b1aa6
3 changed files with 37 additions and 4 deletions

View File

@@ -123,11 +123,23 @@
}
if ($subop == "setpref") {
if (WEB_DEMO_MODE) {
return;
}
if ($subop == "togglepref") {
print "<rpc-reply>";
$key = db_escape_string($_REQUEST["key"]);
set_pref($link, $key, !get_pref($link, $key));
$value = get_pref($link, $key);
print "<param-set key=\"$key\" value=\"$value\"/>";
print "</rpc-reply>";
return;
}
if ($subop == "setpref") {
print "<rpc-reply>";
$key = db_escape_string($_REQUEST["key"]);