1 <script language="javascript" type="text/javascript">
3 var browse_target = 'default';
5 $('#window_browse').dialog({
13 $('li.ui-selected','#browse_elements').each(function(){
17 "Enqueue": function() {
18 $('li.ui-selected','#browse_elements').each(function(){
19 var path = this.getAttribute('opendir') ? this.getAttribute('opendir') : this.getAttribute('openfile');
20 switch(browse_target){
22 sendCommand('command=in_enqueue&input='+encodeURI(path));
26 $(this).dialog("close");
28 "Cancel" : function(){
29 $(this).dialog("close")
37 <div id="window_browse" title="Media Browser">
38 <div style="height:500px;overflow: scroll;">
39 <ol id='browse_elements' selectable="selectable">