-
Notifications
You must be signed in to change notification settings - Fork 2
/
browse_window.html
53 lines (51 loc) · 1.54 KB
/
browse_window.html
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<script type="text/javascript">
//<![CDATA[
var browse_target = 'default';
$(function(){
$('#window_browse').dialog({
autoOpen: false,
width: 600,
height: 650,
modal: true,
resizable: false,
buttons: {
"<?vlc gettext("PlayURL") ?>" : function(){
pathY = document.getElementById('linkY').value;
sendCommand('command=in_play&input='+encodeURIComponent(pathY));
setTimeout(function(){updatePlayList(true);},1000);
$(this).dialog("close");
},
"<?vlc gettext("Open") ?>":function(){
$('li.ui-selected','#browse_elements').each(function(){
$(this).dblclick();
});
},
"<?vlc gettext("Enqueue") ?>": function() {
$('li.ui-selected','#browse_elements').each(function(){
var path = this.getAttribute('opendir') ? this.getAttribute('opendir') : this.getAttribute('openfile');
switch(browse_target){
default:
sendCommand('command=in_enqueue&input='+encodeURI(path));
setTimeout(function(){updatePlayList(true);},1000);
break;
}
});
$(this).dialog("close");
},
"<?vlc gettext("Cancel") ?>" : function(){
$(this).dialog("close")
}
}
});
});
//]]>
</script>
<div id="window_browse" title="<?vlc gettext("Media Browser") ?>">
<div style="height:500px;overflow: auto;">
<label for="linkY">URL:</label>
<input type="text" id="linkY" size="50">
<ol id='browse_elements' selectable="selectable">
<li><?vlc gettext("Play List") ?></li>
</ol>
</div>
</div>