mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 16:31:11 +02:00
yweb: fix setting of default Remote to coolstream. fix save of remote type (settings->yweb) (ybug 454)
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@421 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
@@ -435,7 +435,8 @@ end-block~frame_live_epg
|
|||||||
|
|
||||||
# ------- Remote
|
# ------- Remote
|
||||||
start-block~remote
|
start-block~remote
|
||||||
{=if-equal:Nokia~{=if-equal:{=ini-get:/var/tuxbox/config/Y-Web.conf;fb;default=}~default~{=func:get_boxtype=}~{=ini-get:/var/tuxbox/config/Y-Web.conf;fb;default=}=}~{=include-block:Y_Blocks.txt;remote_standard=}~{=if-equal:{=ini-get:/var/tuxbox/config/Y-Web.conf;fb;default=}~Sagem~{=include-block:Y_Blocks.txt;remote_sagem=}~{=include-block:Y_Blocks.txt;remote_coolstream=}=}=}
|
{=var-set:defaultfb={=if-equal:{=global-var-get:boxtype=}~coolstream~Coolstream~default=}=}
|
||||||
|
{=if-equal:Nokia~{=if-equal:{=ini-get:/var/tuxbox/config/Y-Web.conf;fb;{=var-get:defaultfb=}=}~default~{=func:get_boxtype=}~{=ini-get:/var/tuxbox/config/Y-Web.conf;fb;{=var-get:defaultfb=}=}=}~{=include-block:Y_Blocks.txt;remote_standard=}~{=if-equal:{=ini-get:/var/tuxbox/config/Y-Web.conf;fb;default=}~Sagem~{=include-block:Y_Blocks.txt;remote_sagem=}~{=include-block:Y_Blocks.txt;remote_coolstream=}=}=}
|
||||||
end-block~remote
|
end-block~remote
|
||||||
|
|
||||||
# ------- Remote
|
# ------- Remote
|
||||||
|
@@ -9,11 +9,12 @@ function do_submit(){
|
|||||||
document.f.submit();
|
document.f.submit();
|
||||||
}
|
}
|
||||||
function do_init(){
|
function do_init(){
|
||||||
val = "{=ini-get:/var/tuxbox/config/Y-Web.conf;fb;default~open=}";
|
val = "{=ini-get:/var/tuxbox/config/Y-Web.conf;fb;{=if-equal:{=global-var-get:boxtype=}~coolstream~Coolstream~default=}~open=}";
|
||||||
var sel=2;
|
var sel=2;
|
||||||
switch(val){
|
switch(val){
|
||||||
case "default": sel=0; break;
|
case "default": sel=0; break;
|
||||||
case "Nokia": sel=1; break;
|
case "Nokia": sel=1; break;
|
||||||
|
case "Coolstream": sel=3; break;
|
||||||
}
|
}
|
||||||
document.f.fb.selectedIndex = sel;
|
document.f.fb.selectedIndex = sel;
|
||||||
val = "{=ini-get:/var/tuxbox/config/Y-Web.conf;start_page;bouquets~cache=}";
|
val = "{=ini-get:/var/tuxbox/config/Y-Web.conf;start_page;bouquets~cache=}";
|
||||||
|
Reference in New Issue
Block a user