GoalModelEditor/FrontEnd/public/js/dashboard.js
/**
 * Function to add click eventListener to 'model' class
 */
Function to add click eventListener to 'model' class
Function to add click eventListener to ' model ' class
function addClickOnModel() {
    $(".model").click(evt => {
        removeAllClicked();
        let parentNode = null;
        if ($(evt.target).hasClass("model")) {
            parentNode = evt.target;
        } else {
            parentNode = $(evt.target).parents(".model")[0];
        }
        addModelClicked(parentNode);
    })
}
function addClickOnModel ( ) { $ ( ".model" ) . click ( evt => { removeAllClicked ( ) ; let parentNode = null ; if ( $ ( evt . target ) . hasClass ( "model" ) ) { parentNode = evt . target ; } else { parentNode = $ ( evt . target ) . parents ( ".model" ) [ 0 ] ; } addModelClicked ( parentNode ) ; } ) }
Function to add click eventListener to 'model' class
Function to add click eventListener to ' model ' class