Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- jQuery(document).ready(function() {
- document.getElementById('upload_logo_button').addEventListener('click', function(){
- tb_show('Upload a logo', 'media-upload.php?referer=fullnews-settings&type=image&TB_iframe=true&post_id=0', false);
- return false;
- });
- window.send_to_editor = function(html) {
- var imgurl = jQuery('img', html).attr('src');
- jQuery('#logo_url').val(imgurl);
- tb_remove();
- }
- } );
Add Comment
Please, Sign In to add comment