]> git.sesse.net Git - vlc/blob - share/lua/http/dialogs/batch_window.html
c6aa39606457a43a93aa364fe05b2efd33ce2caf
[vlc] / share / lua / http / dialogs / batch_window.html
1 <script type="text/javascript">
2         $(function(){
3                 $('#window_batch').dialog({
4                         autoOpen: false,
5                         width: 600,
6                         modal: true,
7                         buttons:{
8                                 "Send":function(){
9                                         var cmds        =       $('#batchCommand').val().split("\n");
10                                         for(var i=0;i<cmds.length;i++){
11                                                 cmds[i] =       cmds[i].replace(/^#.*$/,'\n');
12                                         }
13                                         cmds    =       cmds.join(";").replace(/\n/g,';').replace(/;+/g,';').replace(/^;/,'');
14                                         sendVLMCmd(cmds);
15                                         $(this).dialog('close');
16                                 },
17                                 "Cancel":function(){
18                                         $(this).dialog('close');
19                                 }
20                         }
21                 });
22         })
23 </script>
24 <div id="window_batch" title="VLM Batch Commands">
25 <textarea id="batchCommand" cols="50" rows="16">
26 #paste your VLM commands here
27 #separate commands with a new line or a semi-colon
28 </textarea>
29 </div>