rice-framework/krad-web/src/main/webapp/krad/scripts/krad.utility.js
/**
 * Adds a class to the collection group related to the add action
 *
 * @param addButton - the add button that this event was triggered from
 * @param highlightItemClass - the class to add to the group that should be highlighted
 */
Adds a class to the collection group related to the add action

@param addButton - the add button that this event was triggered from
@param highlightItemClass - the class to add to the group that should be highlighted
Adds a class to the collection group related to the add action @param addButton - the add button that this event was triggered from @param highlightItemClass - the class to add to the group that should be highlighted
function addLineMouseOver(addButton, highlightItemClass) {
    var innerLayout = jQuery(addButton).parents('.' + kradVariables.TABLE_COLLECTION_LAYOUT_CLASS
        + ', .' + kradVariables.STACKED_COLLECTION_LAYOUT_CLASS).first().attr('class');
    if (innerLayout) {
        if (innerLayout.indexOf(kradVariables.TABLE_COLLECTION_LAYOUT_CLASS) >= 0) {
            jQuery(addButton).parent().find('table').addClass(highlightItemClass);
        } else {
            jQuery(addButton).parent().find('.' + kradVariables.STACKED_COLLECTION_LAYOUT_CLASS).addClass(highlightItemClass).children().addClass(highlightItemClass);
        }
    }
}
function addLineMouseOver ( addButton , highlightItemClass ) { var innerLayout = jQuery ( addButton ) . parents ( '.' + kradVariables . TABLE_COLLECTION_LAYOUT_CLASS + ', .' + kradVariables . STACKED_COLLECTION_LAYOUT_CLASS ) . first ( ) . attr ( 'class' ) ; if ( innerLayout ) { if ( innerLayout . indexOf ( kradVariables . TABLE_COLLECTION_LAYOUT_CLASS ) >= 0 ) { jQuery ( addButton ) . parent ( ) . find ( 'table' ) . addClass ( highlightItemClass ) ; } else { jQuery ( addButton ) . parent ( ) . find ( '.' + kradVariables . STACKED_COLLECTION_LAYOUT_CLASS ) . addClass ( highlightItemClass ) . children ( ) . addClass ( highlightItemClass ) ; } } }
Adds a class to the collection group related to the add action
Adds a class to the collection group related to the add action