luahttp: fix document parsing with inline javascript
[vlc/solaris.git] / share / lua / http / dialogs / batch_window.html
blobde032f901bf402add1c2201618a4fe1e0c8df57b
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');
14 cmds = cmds.join(";").replace(/\n/g,';').replace(/;+/g,';').replace(/^;/,'');
15 sendVLMCmd(cmds);
16 $(this).dialog('close');
18 "Cancel":function(){
19 $(this).dialog('close');
22 });
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>