Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- jQuery(document).ready(function() {
- jQuery('#upload_image_button').click(function() {
- formfield = jQuery('#upload_image').attr('name');
- tb_show('', 'media-upload.php?type=image&TB_iframe=true');
- return false;
- });
- window.send_to_editor = function(html) {
- imgurl = jQuery('img',html).attr('src');
- jQuery('#upload_image').val(imgurl);
- tb_remove();
- }
- });
Add Comment
Please, Sign In to add comment