Ticket #26023: 26023.patch
File 26023.patch, 1.0 KB (added by , 12 years ago) |
---|
-
src/wp-admin/js/media-upload.js
1 /* global tinymce:true, QTags:true, tb_remove:true:true */ 1 2 // send html to the post editor 2 3 3 4 var wpActiveEditor; … … 2 3 3 function send_to_editor(h) {4 window.send_to_editor = function(h) { 4 5 var ed, mce = typeof(tinymce) != 'undefined', qt = typeof(QTags) != 'undefined'; … … 42 43 document.getElementById(wpActiveEditor).value += h; 43 44 } 44 45 45 try{tb_remove();}catch(e){} ;46 } 46 try{tb_remove();}catch(e){} 47 }; 47 48 48 49 // thickbox settings 49 50 var tb_position; … … 60 61 tbWindow.css({'margin-left': '-' + parseInt((( W - 50 ) / 2),10) + 'px'}); 61 62 if ( typeof document.body.style.maxWidth != 'undefined' ) 62 63 tbWindow.css({'top': 20 + adminbar_height + 'px','margin-top':'0'}); 63 } ;64 } 64 65 65 66 return $('a.thickbox').each( function() { 66 67 var href = $(this).attr('href');