Commit ec2bb2fd authored by Jean-Paul Saman's avatar Jean-Paul Saman

Use the integer value for teletext page in test.html.

parent a8d53a30
......@@ -208,7 +208,7 @@ Verbosity:
<TD>
<INPUT type=button id="telx" value="Teletext off" onClick='doToggleTeletext();'>
Teletext page:
<INPUT size=4 value="100" id="telxPage" onClick="doTelxPage(document.getElementById('telxPage').value);">
<INPUT size=4 value="100" id="telxPage" onClick='doTelxPage(document.getElementById("telxPage").value);'>
</TD>
</TR>
</TABLE>
......@@ -303,7 +303,6 @@ function doAspectRatio(value)
function doSubtitle(value)
{
var vlc = getVLC("vlc");
alert(vlc.video.subtitle + value);
vlc.video.subtitle = vlc.video.subtitle + value;
document.getElementById("spuTextField").innerHTML = vlc.video.subtitle;
};
......@@ -311,8 +310,7 @@ function doSubtitle(value)
function doTelxPage(value)
{
var vlc = getVLC("vlc");
alert( value );
vlc.video.teletext = 889; //value;
vlc.video.teletext = parseInt(value);
};
function doToggleTeletext()
......@@ -324,13 +322,11 @@ function doToggleTeletext()
{
document.getElementById("telx").innerHTML = "Teletext on";
telxState = true;
alert( "telextext on" );
}
else
{
document.getElementById("telx").innerHTML = "Teletext off";
telxState = false;
alert( "telextext off" );
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment