rice-framework/krad-web/src/main/webapp/krad/scripts/krad.utility.js
/**
 * Internal function to initialize and open lightbox
 *
 * <p>
 * jQuery Fancybox is used to create the lightbox. The content type and the contents need to be passed as an option.
 * The second argument is optional and allows additional FancyBox options to be overridden.
 * </p>
 *
 * @param contentOptions the content type and content as fancybox options (eg. {type: 'iframe', href: '<url>'}).
 * @param overrideOptions the map of option settings (option name/value pairs) for the plugin. This is optional.
 */
Internal function to initialize and open lightbox


jQuery Fancybox is used to create the lightbox. The content type and the contents need to be passed as an option.
The second argument is optional and allows additional FancyBox options to be overridden.

@param contentOptions the content type and content as fancybox options .
@param overrideOptions the map of option settings (option name/value pairs) for the plugin. This is optional.
Internal function to initialize and open lightbox jQuery Fancybox is used to create the lightbox . The content type and the contents need to be passed as an option . The second argument is optional and allows additional FancyBox options to be overridden . @param contentOptions the content type and content as fancybox options . @param overrideOptions the map of option settings ( option name / value pairs ) for the plugin . This is optional .
function _initAndOpenLightbox(contentOptions, overrideOptions) {
    var options = { autoScale: true,
        transitionIn: 'fade',
        transitionOut: 'fade',
        speedIn: 200,
        speedOut: 200,
        hideOnContentClick: false,
        padding: 0
    };
    jQuery.extend(true, options, contentOptions);
    if (overrideOptions !== undefined) {
        jQuery.extend(true, options, overrideOptions);
    }
    jQuery.fancybox(options);
    if (!(contentOptions.type === "iframe")) {
        setupLightboxForm();
    }
}
function _initAndOpenLightbox ( contentOptions , overrideOptions ) { var options = { autoScale : true , transitionIn : 'fade' , transitionOut : 'fade' , speedIn : 200 , speedOut : 200 , hideOnContentClick : false , padding : 0 } ; jQuery . extend ( true , options , contentOptions ) ; if ( overrideOptions !== undefined ) { jQuery . extend ( true , options , overrideOptions ) ; } jQuery . fancybox ( options ) ; if ( ! ( contentOptions . type === "iframe" ) ) { setupLightboxForm ( ) ; } }
Internal function to initialize and open lightbox
Internal function to initialize and open lightbox
// override fancybox content options
 // override fancybox options
 // Open the light box
 //stop external content from being wrapped with kualiForm tag
