From 41687a7bbe9c8d304b805a9a5f7e14101f1d75a5 Mon Sep 17 00:00:00 2001 From: Christian Wieninger Date: Sun, 3 Jun 2007 18:34:17 +0000 Subject: - save and restore last list mode in "What's on" --- pages/whats_on.ecpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'pages') diff --git a/pages/whats_on.ecpp b/pages/whats_on.ecpp index bbbb73b..d537262 100644 --- a/pages/whats_on.ecpp +++ b/pages/whats_on.ecpp @@ -15,7 +15,7 @@ using namespace vdrlive; <%args> type = "now"; -mode = "detail"; +string mode; string attime; string fixtime; @@ -43,6 +43,11 @@ string head; time_t seektime = 0; string displaytime; +if (mode.empty()) + mode = LiveSetup().GetLastWhatsOnListMode(); +else + LiveSetup().SetLastWhatsOnListMode(mode); + current_type = type; current_mode = mode; current_attime = attime; -- cgit v1.2.3