rice-framework/krad-web/src/main/webapp/krad/scripts/krad.actions.js
/**
 * Initialize action data for the action by merging any custom settings with global default settings
 *
 * @param jqComponent a jq object that represents the component to correct data for
 */
Initialize action data for the action by merging any custom settings with global default settings

@param jqComponent a jq object that represents the component to correct data for
Initialize action data for the action by merging any custom settings with global default settings @param jqComponent a jq object that represents the component to correct data for
function initActionData(jqActionComponent) {
    jQuery.each(actionDefaults, function (key, value) {
        var dataValue = jqActionComponent.data(key.toLowerCase());
        if (dataValue === undefined) {
            jqActionComponent.data(key.toLowerCase(), value);
        }
    });
    var submitData = jqActionComponent.data(kradVariables.SUBMIT_DATA);
    var focusId = jqActionComponent.data(kradVariables.FOCUS_ID);
    if (focusId && focusId !== kradVariables.SELF) {
        submitData.focusId = focusId;
    }
    else if (focusId && focusId === kradVariables.SELF) {
        submitData.focusId = jqActionComponent.attr("id");
    }
    var jumpToId = jqActionComponent.data(kradVariables.JUMP_TO_ID);
    if (jumpToId && jumpToId !== kradVariables.SELF) {
        submitData.jumpToId = jumpToId;
    }
    else if (jumpToId && jumpToId === kradVariables.SELF) {
        submitData.jumpToId = jqActionComponent.attr("id");
    }
}
function initActionData ( jqActionComponent ) { jQuery . each ( actionDefaults , function ( key , value ) { var dataValue = jqActionComponent . data ( key . toLowerCase ( ) ) ; if ( dataValue === undefined ) { jqActionComponent . data ( key . toLowerCase ( ) , value ) ; } } ) ; var submitData = jqActionComponent . data ( kradVariables . SUBMIT_DATA ) ; var focusId = jqActionComponent . data ( kradVariables . FOCUS_ID ) ; if ( focusId && focusId !== kradVariables . SELF ) { submitData . focusId = focusId ; } else if ( focusId && focusId === kradVariables . SELF ) { submitData . focusId = jqActionComponent . attr ( "id" ) ; } var jumpToId = jqActionComponent . data ( kradVariables . JUMP_TO_ID ) ; if ( jumpToId && jumpToId !== kradVariables . SELF ) { submitData . jumpToId = jumpToId ; } else if ( jumpToId && jumpToId === kradVariables . SELF ) { submitData . jumpToId = jqActionComponent . attr ( "id" ) ; } }
Initialize action data for the action by merging any custom settings with global default settings
Initialize action data for the action by merging any custom settings with global default settings
// If an action does not have a setting for something in defaults, use the default
 // Insert focusId and jumpToId settings into submitData
