function tspedev_save_image_url(image_html, field_id)
{
    var image_url = '';

    var regex = /src=\"(.*?)\" /;
    var found = image_html.match(regex);

    if (found)
        image_url = found[1];

    selected_image = "<img src='" + image_url + "' />";

    url_display = image_url;

    if (image_url == '')
        url_display = 'No image selected';

    image_id = '#' + field_id;

    prefix = jQuery(image_id + "_prefix").val();

    url_display_id = '#' + prefix + '_url_display';
    selected_image_id = '#' + prefix + '_selected_image';

    jQuery(image_id).val(image_url);
    jQuery(url_display_id).html(url_display);
    jQuery(selected_image_id).html(selected_image);
}//end tspedev_save_image_url
// Store the field that contains the image URL
Store the field that contains the image URL
Store the field that contains the image URL
function tspedev_save_image_url(image_html, field_id)
{
    var image_url = '';
    var regex = /src=\"(.*?)\" /;
    var found = image_html.match(regex);
    if (found)
        image_url = found[1];
    selected_image = "<img src='" + image_url + "' />";
    url_display = image_url;
    if (image_url == '')
        url_display = 'No image selected';
    image_id = '#' + field_id;
    prefix = jQuery(image_id + "_prefix").val();
    url_display_id = '#' + prefix + '_url_display';
    selected_image_id = '#' + prefix + '_selected_image';
    jQuery(image_id).val(image_url);
    jQuery(url_display_id).html(url_display);
    jQuery(selected_image_id).html(selected_image);
}
function tspedev_save_image_url ( image_html , field_id ) { var image_url = '' ; var regex = / src=\"(.*?)\"  / ; var found = image_html . match ( regex ) ; if ( found ) image_url = found [ 1 ] ; selected_image = "<img src='" + image_url + "' />" ; url_display = image_url ; if ( image_url == '' ) url_display = 'No image selected' ; image_id = '#' + field_id ; prefix = jQuery ( image_id + "_prefix" ) . val ( ) ; url_display_id = '#' + prefix + '_url_display' ; selected_image_id = '#' + prefix + '_selected_image' ; jQuery ( image_id ) . val ( image_url ) ; jQuery ( url_display_id ) . html ( url_display ) ; jQuery ( selected_image_id ) . html ( selected_image ) ; }
Store the field that contains the image URL
Store the field that contains the image URL
//end tspedev_save_image_url