Changeset 758190ee3f1e5cf2a176ce47420cc08bfa0918a1

Show
Ignore:
Timestamp:
01/27/06 14:48:28 (3 years ago)
Author:
Antoine Cellerier <dionoea@videolan.org>
git-committer:
Antoine Cellerier <dionoea@videolan.org> 1138369708 +0000
git-parent:

[75f733bc03f3b78b2e5399b9b0e31ddce1a13867]

git-author:
Antoine Cellerier <dionoea@videolan.org> 1138369708 +0000
Message:
  • : it's now possible to enter a batch of commands or export the VLM

configuration

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • share/http/dialogs/vlm

    r15f7f7c r758190e  
    5151    <button id="btn_schedule" onclick="hide_vlm_add();show('vlm_add_schedule');update_vlm_add_schedule();" onmouseover="button_over(this);" onmouseout="button_out(this);"> 
    5252      Schedule 
     53    </button> 
     54    <button id="btn_other" onclick="hide_vlm_add();show('vlm_add_other');update_vlm_add_other();" onmouseover="button_over(this);" onmouseout="button_out(this);"> 
     55      Other 
    5356    </button> 
    5457  </div> 
     
    135138      <input type="text" id="vlm_schedule_repeat_times" size="8" disabled="disabled" value="0" onchange="update_vlm_add_schedule();" /> 
    136139    </div> 
     140    <div id="vlm_add_other" style="display: none"> 
     141      <input type="button" id="btn_import" onclick="vlm_batch(document.getElementById('vlm_batch_text').value);" value="Send command batch" /> 
     142      <input type="button" id="btn_export" onclick="document.location.assign('vlm_export.html');" value="Export VLM commands (new page)" /> 
     143      <br/> 
     144      <textarea cols="70" rows="20" id="vlm_batch_text">#paste your VLM commands here</textarea> 
     145    </div> 
    137146  </div> 
    138147</div> 
  • share/http/js/vlm.js

    r15f7f7c r758190e  
    6060    document.getElementById( 'vlm_add_vod' ).style.display = 'none'; 
    6161    document.getElementById( 'vlm_add_schedule' ).style.display = 'none'; 
     62    document.getElementById( 'vlm_add_other' ).style.display = 'none'; 
    6263} 
    6364 
     
    245246        cmd.value = ""; 
    246247    } 
     248} 
     249 
     250function update_vlm_add_other() 
     251{ 
     252    cmd = document.getElementById( 'vlm_command' ); 
     253    cmd.value = ""; 
    247254} 
    248255 
     
    658665} 
    659666 
     667function vlm_batch( batch ) 
     668{ 
     669    var i; 
     670    var commands = batch.split( '\n' ); 
     671    for( i = 0; i < commands.length; i++ ) 
     672    { 
     673        document.getElementById( 'vlm_command' ).value = commands[i]; 
     674        vlm_cmd( value( 'vlm_command' ) ); 
     675    } 
     676} 
     677 
    660678function vlm_schedule_append( name ) 
    661679{