1 <script language="javascript" type="text/javascript">
2 var browse_target = 'default';
4 $('#window_browse').dialog({
12 $('li.ui-selected','#browse_elements').each(function(){
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){
21 sendCommand('command=in_enqueue&input='+encodeURI(path));
25 $(this).dialog("close");
27 "Cancel" : function(){
28 $(this).dialog("close")
35 <div id="window_browse" title="Media Browser">
36 <div style="height:500px;overflow: scroll;">
37 <ol id='browse_elements' selectable="selectable">