rice-framework/krad-web/src/main/webapp/krad/scripts/krad.initialize.js
/**
 * Test if an input field is part of a widget by examining event.currentTarget and event.target
 *
 */
Test if an input field is part of a widget by examining event.currentTarget and event.target
Test if an input field is part of a widget by examining event . currentTarget and event . target
function isRelatedTarget(element, event) {
    if (!event) return true;
    try {
        for (var key in event.currentTarget) {
            if (key.match(/fancy/g) && key !== undefined) {
                console.log(key);
                return true;
            }
        }
        if (("relatedTarget" in event && event.relatedTarget !== null
                && element === event.relatedTarget.parentElement.parentElement)
                || ("relatedTarget" in event && event.relatedTarget !== null
                && element === event.relatedTarget.parentElement)
                ) {
            return true;
        }
        return false;
    } catch (e) {
        return false;
    }
}
function isRelatedTarget ( element , event ) { if ( ! event ) return true ; try { for ( var key in event . currentTarget ) { if ( key . match ( / fancy / g ) && key !== undefined ) { console . log ( key ) ; return true ; } } if ( ( "relatedTarget" in event && event . relatedTarget !== null && element === event . relatedTarget . parentElement . parentElement ) || ( "relatedTarget" in event && event . relatedTarget !== null && element === event . relatedTarget . parentElement ) ) { return true ; } return false ; } catch ( e ) { return false ; } }
Test if an input field is part of a widget by examining event.currentTarget and event.target
Test if an input field is part of a widget by examining event . currentTarget and event . target
// test for lightbox widget by matching a fancy-box event property
 // here we check to see if the element we are focusing out of is nested in a input-group div or within
 // input-group-btn div. If so then they are related to the widget
