rice-framework/krad-web/src/main/webapp/krad/scripts/krad.utility.js
/**
 * Display the component of the id in a light box.
 *
 * <p>The specified component is used as the content of the fancy box.
 * The second argument is optional and allows the FancyBox options to be overridden.</p>
 *
 * @param componentId the id of the component that will be used for the lightbox content (usually a group id)
 * @param overrideOptions the map of option settings (option name/value pairs) for the plugin. This is optional.
 * @param alwaysRefresh indicates even if the component is currently in the dom, its contents will be retrieved
 * from the server
 */
Display the component of the id in a light box.

The specified component is used as the content of the fancy box.
The second argument is optional and allows the FancyBox options to be overridden.

@param componentId the id of the component that will be used for the lightbox content (usually a group id)
@param overrideOptions the map of option settings (option name/value pairs) for the plugin. This is optional.
@param alwaysRefresh indicates even if the component is currently in the dom, its contents will be retrieved
from the server
Display the component of the id in a light box . The specified component is used as the content of the fancy box . The second argument is optional and allows the FancyBox options to be overridden . @param componentId the id of the component that will be used for the lightbox content ( usually a group id ) @param overrideOptions the map of option settings ( option name / value pairs ) for the plugin . This is optional . @param alwaysRefresh indicates even if the component is currently in the dom its contents will be retrieved from the server
function showLightboxComponent(componentId, overrideOptions, alwaysRefresh) {
    if (overrideOptions === undefined) {
        overrideOptions = {};
    }
    if (alwaysRefresh === undefined) {
        alwaysRefresh = false;
    }
    if (jQuery("input[name='" + kradVariables.RENDERED_IN_DIALOG + "']").val() != true) {
        jQuery("input[name='" + kradVariables.RENDERED_IN_DIALOG + "']").val(true);
        _appendCallbackFunctions(overrideOptions, {afterClose: function () {
            jQuery("input[name='" + kradVariables.RENDERED_IN_DIALOG + "']").val(false);
        }});
    }
    if (jQuery('#' + componentId).length > 0 && !alwaysRefresh
        && !jQuery('#' + componentId).hasClass(kradVariables.CLASSES.PLACEHOLDER)) {
        _showLightboxComponentHelper(componentId, overrideOptions);
    } else {
        createPlaceholderAndRetrieve(componentId, function () {
            _showLightboxComponentHelper(componentId, overrideOptions);
        });
    }
}
function showLightboxComponent ( componentId , overrideOptions , alwaysRefresh ) { if ( overrideOptions === undefined ) { overrideOptions = { } ; } if ( alwaysRefresh === undefined ) { alwaysRefresh = false ; } if ( jQuery ( "input[name='" + kradVariables . RENDERED_IN_DIALOG + "']" ) . val ( ) != true ) { jQuery ( "input[name='" + kradVariables . RENDERED_IN_DIALOG + "']" ) . val ( true ) ; _appendCallbackFunctions ( overrideOptions , { afterClose : function ( ) { jQuery ( "input[name='" + kradVariables . RENDERED_IN_DIALOG + "']" ) . val ( false ) ; } } ) ; } if ( jQuery ( '#' + componentId ) . length > 0 && ! alwaysRefresh && ! jQuery ( '#' + componentId ) . hasClass ( kradVariables . CLASSES . PLACEHOLDER ) ) { _showLightboxComponentHelper ( componentId , overrideOptions ) ; } else { createPlaceholderAndRetrieve ( componentId , function ( ) { _showLightboxComponentHelper ( componentId , overrideOptions ) ; } ) ; } }
Display the component of the id in a light box.
Display the component of the id in a light box .
// set renderedInDialog indicator and remove it when lightbox is closed
