From 8c45452dbaafcd013f9db13f6ee966eea9808068 Mon Sep 17 00:00:00 2001
From: "M. Voerman" <rekordc@gmail.com>
Date: Sat, 27 Feb 2016 21:00:13 +0100
Subject: RadioGroup can be set from settings

---
 History                | 1 +
 javascript/main.js     | 6 +++---
 javascript/settings.js | 4 +++-
 3 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/History b/History
index cee276b..d2ae27d 100644
--- a/History
+++ b/History
@@ -10,6 +10,7 @@ VDR 1.7.29+
 
 0.28	Time to display volume info can be set independant from other OSD timeout.
 	Key_TV/RADIO - Don't save current channel if current group is protected.
+	Radio Group can be set from settings.
 
 
 0.27	Weather info from openweathermap.org added. You can add your own api key, see settings.js
diff --git a/javascript/main.js b/javascript/main.js
index 54f40d9..4390622 100644
--- a/javascript/main.js
+++ b/javascript/main.js
@@ -1073,15 +1073,15 @@ function onKeyDown(event) {
     case "TV":
     case "RADIO":
 	if(isFullscreen) {
-		if(ChanGroup !== 9) {
+		if(ChanGroup !== RadioGroup) {
 		//Radio
 			defChan[ChanGroup] = currChan;
 			if ((protChn[ChanGroup] !== 1)) {
 				//If group is protected don't saving current channel
 				OldChanGroup = ChanGroup;
 			}
-			ChanGroup = 9;
-			currChan = defChan[9];
+			ChanGroup = RadioGroup;
+			currChan = defChan[RadioGroup];
 		} else {
 			//TV
 			defChan[ChanGroup] = currChan;
diff --git a/javascript/settings.js b/javascript/settings.js
index 0c74dd4..9396f84 100644
--- a/javascript/settings.js
+++ b/javascript/settings.js
@@ -2,7 +2,7 @@
 // Default settings
 // 
 
-var Version = "0.28.01";
+var Version = "0.28.02";
 
 //weather
 var city = "Almelo";
@@ -37,6 +37,8 @@ var Use_DLNA;// DLNA testing
 var MenuOffID; //Menu remove timeout
 var MenuTimeOut = 1 * 60 * 1000; // 1 minutes TimeOut
 
+var RadioGroup = 9;
+
 OSDLang = new Array ("English", "Nederlands", "Deutsch", "Suomi");
 langfile = new Array ("languages/lang_eng.js", "languages/lang_dut.js","languages/lang_ger.js", "languages/lang_fin.js");
 var conf_dir = "config/";
-- 
cgit v1.2.3