diff options
author | M. Voerman <rekordc@gmail.com> | 2016-02-27 21:00:13 +0100 |
---|---|---|
committer | M. Voerman <rekordc@gmail.com> | 2016-02-27 21:00:13 +0100 |
commit | 8c45452dbaafcd013f9db13f6ee966eea9808068 (patch) | |
tree | 0a01c6cb5d0492e1cfa013fe5209b4fb84f3fab8 | |
parent | d1f5de137018a9634c82cd9bf5f4967a66cabb14 (diff) | |
download | vdr-vipclient-8c45452dbaafcd013f9db13f6ee966eea9808068.tar.gz vdr-vipclient-8c45452dbaafcd013f9db13f6ee966eea9808068.tar.bz2 |
RadioGroup can be set from settings
-rw-r--r-- | History | 1 | ||||
-rw-r--r-- | javascript/main.js | 6 | ||||
-rw-r--r-- | javascript/settings.js | 4 |
3 files changed, 7 insertions, 4 deletions
@@ -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/"; |