Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //PORTFOLIO BUTTON
- jQuery(document).ready(function() {
- jQuery('#boldyp_pitemlbutton').click(function() {
- window.send_to_editor = function(html) {
- imgurl = jQuery('img',html).attr('src');
- jQuery('#boldyp_pitemlurl').val(imgurl);
- jQuery('#boldyp_pitemlsrc_img').attr('src',imgurl);
- tb_remove();
- }
- post_ID = jQuery('#post_ID').val();
- tb_show('', 'media-upload.php?post_ID='+post_ID+'&type=image&TB_iframe=true');
- return false;
- });
- });
- //FEATUED BUTTON
- jQuery(document).ready(function() {
- jQuery('#boldys_slideimage').click(function() {
- window.send_to_editor = function(html) {
- imgurl = jQuery('img',html).attr('src');
- jQuery('#boldys_slideimage_src').val(imgurl);
- jQuery('#boldys_slideimage_src_img').attr('src',imgurl);
- tb_remove();
- }
- post_ID = jQuery('#post_ID').val();
- tb_show('', 'media-upload.php?post_ID='+post_ID+'&type=image&TB_iframe=true');
- return false;
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement