rice-framework/krad-web/src/main/webapp/krad/scripts/krad.lookup.js
/**
 * Reload page with lookup result URL
 */
Reload page with lookup result URL
Reload page with lookup result URL
function returnLookupResultReload(returnLink) {
    setupImages();
    showLoading('Returning result...',jQuery('#Uif-DialogGroup-Lookup'));
    var jqReturnLink = jQuery(returnLink);
    var href = jqReturnLink.attr("href");
    var target = jqReturnLink.attr("target");
    var closedLightboxNeeded = true;
    if (parent.jQuery('iframe[id*=easyXDM_]').length > 0) {
        top.jQuery('iframe[id*=easyXDM_]').contents().find('#' + kradVariables.PORTAL_IFRAME_ID).attr('src', href);
    } else if (parent.parent.jQuery('#' + kradVariables.PORTAL_IFRAME_ID).length > 0) {
        parent.parent.jQuery('#' + kradVariables.PORTAL_IFRAME_ID).attr('src', href);
    } else {
        window.open(href, target);
        closedLightboxNeeded = false;
    }
    if (closedLightboxNeeded) {
        closeLightbox();
    }
}
function returnLookupResultReload ( returnLink ) { setupImages ( ) ; showLoading ( 'Returning result...' , jQuery ( '#Uif-DialogGroup-Lookup' ) ) ; var jqReturnLink = jQuery ( returnLink ) ; var href = jqReturnLink . attr ( "href" ) ; var target = jqReturnLink . attr ( "target" ) ; var closedLightboxNeeded = true ; if ( parent . jQuery ( 'iframe[id*=easyXDM_]' ) . length > 0 ) { top . jQuery ( 'iframe[id*=easyXDM_]' ) . contents ( ) . find ( '#' + kradVariables . PORTAL_IFRAME_ID ) . attr ( 'src' , href ) ; } else if ( parent . parent . jQuery ( '#' + kradVariables . PORTAL_IFRAME_ID ) . length > 0 ) { parent . parent . jQuery ( '#' + kradVariables . PORTAL_IFRAME_ID ) . attr ( 'src' , href ) ; } else { window . open ( href , target ) ; closedLightboxNeeded = false ; } if ( closedLightboxNeeded ) { closeLightbox ( ) ; } }
Reload page with lookup result URL
Reload page with lookup result URL
// portal and content on same domain
 // portal and content on different domain
