rice-framework/krad-web/src/main/webapp/krad/scripts/krad.actions.js
/**
 * Ensures that the componentObject is visible by "opening" mechanisms that may be hiding it such as
 * row details or group disclosure.  Used to make invalid fields visible on validation.
 *
 * @param componentObject the object to check for visibility of and "open" parent containing elements to make
 * it visible
 */
Ensures that the componentObject is visible by "opening" mechanisms that may be hiding it such as
row details or group disclosure.  Used to make invalid fields visible on validation.

@param componentObject the object to check for visibility of and "open" parent containing elements to make
it visible
Ensures that the componentObject is visible by " opening " mechanisms that may be hiding it such as row details or group disclosure . Used to make invalid fields visible on validation . @param componentObject the object to check for visibility of and " open " parent containing elements to make it visible
function cascadeOpen(componentObject) {
    if (componentObject.not(":visible")) {
        var detailsDivs = componentObject.parents("[data-role='details']");
        detailsDivs.each(function () {
            jQuery(this).parent().find("> a").click();
        });
        var disclosureDivs = componentObject.parents("[data-role='disclosureContent']");
        disclosureDivs.each(function () {
            if (!jQuery(this).data("open")) {
                jQuery(this).parent().find("a[data-linkfor='" + jQuery(this).attr("id") + "']").click();
            }
        });
    }
}
function cascadeOpen ( componentObject ) { if ( componentObject . not ( ":visible" ) ) { var detailsDivs = componentObject . parents ( "[data-role='details']" ) ; detailsDivs . each ( function ( ) { jQuery ( this ) . parent ( ) . find ( "> a" ) . click ( ) ; } ) ; var disclosureDivs = componentObject . parents ( "[data-role='disclosureContent']" ) ; disclosureDivs . each ( function ( ) { if ( ! jQuery ( this ) . data ( "open" ) ) { jQuery ( this ) . parent ( ) . find ( "a[data-linkfor='" + jQuery ( this ) . attr ( "id" ) + "']" ) . click ( ) ; } } ) ; } }
Ensures that the componentObject is visible by "opening" mechanisms that may be hiding it such as
 row details or group disclosure.
Ensures that the componentObject is visible by " opening " mechanisms that may be hiding it such as row details or group disclosure .