Commit 44e5326d authored by Antoine Cellerier's avatar Antoine Cellerier

Add hide/show vlm helper button. Original idea by Albert...

Add hide/show vlm helper button. Original idea by Albert (http://forum.videolan.org/viewtopic.php?t=18573)
parent 50d9c2c4
......@@ -44,6 +44,7 @@ sout and vlmelements .
<br />
<span id="vlm_error"></span>
<br />
<span id="vlm_helper_controls">
<button id="btn_broadcast" onclick="hide_vlm_add();show('vlm_add_broadcast');update_vlm_add_broadcast();" onmouseover="button_over(this);" onmouseout="button_out(this);">
Broadcast
</button>
......@@ -56,6 +57,10 @@ sout and vlmelements .
<button id="btn_other" onclick="hide_vlm_add();show('vlm_add_other');update_vlm_add_other();" onmouseover="button_over(this);" onmouseout="button_out(this);">
Other
</button>
</span>
<button id="btn_vlm_helper_toggle" onclick="toggle_show_vlm_helper();" onmouseover="button_over(this);" onmouseout="button_out(this);">
Hide VLM helper
</button>
</div>
<div id="vlm_helper" class="helper" >
<div id="vlm_add_broadcast" style="display: block">
......
......@@ -28,6 +28,27 @@ function addunderscores( str ){ return str.replace(/\'|\"| /g, '_'); }
* Input dialog functions
*********************************************************************/
function toggle_show_vlm_helper()
{
var vlmh = document.getElementById( "vlm_helper" );
var vlmhctrl = document.getElementById( "vlm_helper_controls" );
var btn = document.getElementById( "btn_vlm_helper_toggle" );
if( vlmh.style.display == 'block' || vlmh.style.display == '')
{
vlmh.style.display = 'none';
vlmhctrl.style.display = 'none';
btn.removeChild( btn.firstChild );
btn.appendChild( document.createTextNode( 'Show VLM helper' ) );
}
else
{
vlmh.style.display = 'block';
vlmhctrl.style.display = 'inline';
btn.removeChild( btn.firstChild );
btn.appendChild( document.createTextNode( 'Hide VLM helper' ) );
}
}
function vlm_input_edit( dest )
{
document.getElementById( 'input_dest' ).value = dest;
......
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