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

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

(cherry picked from commit 7d52e042be7fefecd5f8039d6fa7fa9ee445e060)
parent 02c98de6
......@@ -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