Make WordPress Core

Ticket #26023: 26023.patch

File 26023.patch, 1.0 KB (added by iblamefish, 12 years ago)
  • src/wp-admin/js/media-upload.js

     
     1/* global tinymce:true, QTags:true, tb_remove:true:true */
    12// send html to the post editor
    23
    34var wpActiveEditor;
     
    23
    3 function send_to_editor(h) {
     4window.send_to_editor = function(h) {
    45        var ed, mce = typeof(tinymce) != 'undefined', qt = typeof(QTags) != 'undefined';
     
    4243                document.getElementById(wpActiveEditor).value += h;
    4344        }
    4445
    45         try{tb_remove();}catch(e){};
    46 }
     46        try{tb_remove();}catch(e){}
     47};
    4748
    4849// thickbox settings
    4950var tb_position;
     
    6061                        tbWindow.css({'margin-left': '-' + parseInt((( W - 50 ) / 2),10) + 'px'});
    6162                        if ( typeof document.body.style.maxWidth != 'undefined' )
    6263                                tbWindow.css({'top': 20 + adminbar_height + 'px','margin-top':'0'});
    63                 };
     64                }
    6465
    6566                return $('a.thickbox').each( function() {
    6667                        var href = $(this).attr('href');