From 4aa5bd593c49855b9ecbb94889cdda1351e7f5cd Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sun, 20 Jan 2013 12:11:36 +0400 Subject: implement basic hotkeys map support in digest; implement next/prev feed hotkeys --- plugins/digest/init.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'plugins/digest/init.php') diff --git a/plugins/digest/init.php b/plugins/digest/init.php index 503ae5b5c..05d2f37f0 100644 --- a/plugins/digest/init.php +++ b/plugins/digest/init.php @@ -1,4 +1,5 @@ link, -4, true, false, 0); + $params = array(); $feeds = array(); foreach ($tmp_feeds as $f) { if ($f['id'] > 0 || $f['id'] == -4) array_push($feeds, $f); } - print json_encode(array("feeds" => $feeds)); + if ($_REQUEST["init"] == 1) { + $params["hotkeys"] = get_hotkeys_map($link); + } + $params["feeds"] = $feeds; + + print json_encode($params); } } -- cgit v1.2.3