]> git.sesse.net Git - vlc/blob - share/lua/http/dialogs/browse_window.html
38a24a13994094049a2d95c47231d23c856fb653
[vlc] / share / lua / http / dialogs / browse_window.html
1 <script language="javascript" type="text/javascript">
2         var browse_target               =       'default';
3         $(function(){
4                 $('#window_browse').dialog({
5                         autoOpen: false,
6                         width: 600,
7                         height: 650,
8                         modal: true,
9                         resizable: false,
10                         buttons: {
11                                 "Open":function(){
12                                         $('li.ui-selected','#browse_elements').each(function(){
13                                                 $(this).dblclick();
14                                         });
15                                 },
16                                 "Enqueue": function() {
17                                         $('li.ui-selected','#browse_elements').each(function(){
18                                                 var path        =       this.getAttribute('opendir') ? this.getAttribute('opendir') : this.getAttribute('openfile');
19                                                 switch(browse_target){
20                                                         default:
21                                                                 sendCommand('command=in_enqueue&input='+encodeURI(path));
22                                                                 break;
23                                                 }
24                                         });
25                                         $(this).dialog("close");
26                                 },
27                                 "Cancel" : function(){
28                                         $(this).dialog("close")
29                                 }
30                         }
31                 });
32         });
33 </script>
34
35 <div id="window_browse" title="Media Browser">
36         <div style="height:500px;overflow: scroll;">
37                 <ol id='browse_elements' selectable="selectable">
38                         <li>Play List</li>
39                 </ol>
40         </div>
41 </div>