rice-framework/krad-web/src/main/webapp/krad/scripts/krad.message.js
/**
 * If the content is an incident report view returns true, otherwise returns false
 *
 * @param content - response contents
 * @returns {Boolean} true if there was an incident, false otherwise
 */
If the content is an incident report view returns true, otherwise returns false

@param content - response contents
@returns {Boolean} true if there was an incident, false otherwise
If the content is an incident report view returns true otherwise returns false @param content - response contents @returns { Boolean } true if there was an incident false otherwise
function checkForIncidentReport(content) {
    var viewId = jQuery("input[name='" + kradVariables.VIEW_ID + "']", content);
    if (viewId.length && viewId.val() === kradVariables.INCIDENT_REPORT_VIEW_CLASS) {
        return true;
    }
    else {
        return false;
    }
}
function checkForIncidentReport ( content ) { var viewId = jQuery ( "input[name='" + kradVariables . VIEW_ID + "']" , content ) ; if ( viewId . length && viewId . val ( ) === kradVariables . INCIDENT_REPORT_VIEW_CLASS ) { return true ; } else { return false ; } }
If the content is an incident report view returns true, otherwise returns false
If the content is an incident report view returns true otherwise returns false