File size: 889 Bytes
8739cbb
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<script type="text/javascript">

//<![CDATA[

	$(function(){

		$('#window_batch').dialog({

			autoOpen: false,

			width: 600,

			modal: true,

			buttons:{

				"<?vlc gettext("Send") ?>":function(){

					var cmds	=	$('#batchCommand').val().split("\n");

					for(var i=0;i<cmds.length;i++){

						cmds[i]	=	cmds[i].replace(/^#.*$/,'\n');

					}

					cmds	=	cmds.join(";").replace(/\n/g,';').replace(/;+/g,';').replace(/^;/,'');

					sendVLMCmd(cmds);

					$(this).dialog('close');

				},

				"<?vlc gettext("Cancel") ?>":function(){

					$(this).dialog('close');

				}

			}

		});

	})

//]]>

</script>
<div id="window_batch" title="<?vlc gettext("VLM Batch Commands") ?>">
<textarea id="batchCommand" cols="50" rows="16">
<?vlc gettext("#paste your VLM commands here") ?>

<?vlc gettext("#separate commands with a new line or a semi-colon") ?>
</textarea>
</div>