yWeb: allow screenshot page as start page

Origin commit data
------------------
Branch: ni/coolstream
Commit: 75639e6e69
Author: vanhofen <vanhofen@gmx.de>
Date: 2016-09-06 (Tue, 06 Sep 2016)

Origin message was:
------------------
- yWeb: allow screenshot page as start page

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
vanhofen
2016-09-06 17:03:31 +02:00
parent 425c598991
commit df93ad82ba
2 changed files with 13 additions and 3 deletions

View File

@@ -374,6 +374,7 @@ function do_submit()
<option value="bouquets" selected="selected">{=L:bc.menue.bouquets=}</option>
<option value="control">{=L:bc.menue.control=}</option>
<option value="remote">{=L:bc.menue.remote=}</option>
<option value="screenshot">{=L:bc.menue.screenshot=}</option>
<option value="none">{=L:empty=}</option>
</td>
</tr>
@@ -446,9 +447,16 @@ start-block~frame_boxcontrol
~
{=if-equal:{=var-get:startpage=}~control~Y_Tools_Boxcontrol.yhtm
~
{=if-equal:{=var-get:startpage=}~remote~Y_Tools_Rcsim.yhtm~Y_NI_blank.yhtm=}
{=if-equal:{=var-get:startpage=}~remote~Y_Tools_Rcsim.yhtm
~
{=if-equal:{=var-get:startpage=}~screenshot~Y_Tools_Screenshot.yhtm?osd=1
~
Y_NI_blank.yhtm
=}
=}
=}
=}=}
=}
=}
{=include-block:Y_Blocks.txt;frame_secondary=}
end-block~frame_boxcontrol

View File

@@ -48,11 +48,12 @@ function do_init(){
document.f.fb.selectedIndex = sel;
obj_set_radio_value('screenshot_rc', "{=ini-get:/var/tuxbox/config/Y-Web.conf;screenshot_rc;false~cache=}");
val = "{=ini-get:/var/tuxbox/config/Y-Web.conf;start_page;bouquets~cache=}";
var sel=3;
var sel=4;
switch(val){
case "bouquets": sel=0; break;
case "control": sel=1; break;
case "remote": sel=2; break;
case "screenshot": sel=3; break;
}
document.f.start_page.selectedIndex = sel;
style_old = "{=ini-get:/var/tuxbox/config/Y-Web.conf;style~cache=}";
@@ -171,6 +172,7 @@ select {
<option value="bouquets" selected="selected">{=L:bc.menue.bouquets=}</option>
<option value="control">{=L:bc.menue.control=}</option>
<option value="remote">{=L:bc.menue.remote=}</option>
<option value="screenshot">{=L:bc.menue.screenshot=}</option>
<option value="none">{=L:empty=}</option>
</select>
</td>