From 1a552181fdc3a94e40c16c522af1003c0fed12a4 Mon Sep 17 00:00:00 2001 From: svenhoefer Date: Sun, 16 May 2021 23:58:53 +0200 Subject: [PATCH] - yweb: fix rc selection for cst Signed-off-by: Thilo Graf --- data/y-web/Y_Settings_yWeb.yhtm | 10 ++++++++-- data/y-web/Y_Version.txt | 2 +- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/data/y-web/Y_Settings_yWeb.yhtm b/data/y-web/Y_Settings_yWeb.yhtm index 43b1febd0..bd2e6f7e7 100644 --- a/data/y-web/Y_Settings_yWeb.yhtm +++ b/data/y-web/Y_Settings_yWeb.yhtm @@ -34,8 +34,14 @@ function do_init(){ { if (fb_options[i].value == val) document.f.fb.selectedIndex = i; - if (cst && i > 2+8) - fb_options[i].disabled = true; + if (cst) + { + // rc_cst_trinity_duo is the last cst rc in selection + if (val > {=var-get:_rc_cst_trinity_duo=}) + val = {=var-get:_rc_auto=}; + if (fb_options[i].value > {=var-get:_rc_cst_trinity_duo=}) + fb_options[i].disabled = true; + } } obj_set_radio_value('screenshot_rc', "{=ini-get:%(CONFIGDIR)/Y-Web.conf;screenshot_rc;false~cache=}"); val = "{=ini-get:%(CONFIGDIR)/Y-Web.conf;start_page;bouquets~cache=}"; diff --git a/data/y-web/Y_Version.txt b/data/y-web/Y_Version.txt index 791a8ae8e..2e19fb419 100644 --- a/data/y-web/Y_Version.txt +++ b/data/y-web/Y_Version.txt @@ -1,4 +1,4 @@ -version=2.9.0.50 +version=2.9.0.51 date=16.05.2021 info=Tuxbox-Neutrino type=Release