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