GoalModelEditor/FrontEnd/public/js/dashboard.js
/**
 * Function to add click eventListener to 'dropdown' class
 * remove "model_clicked" and add it to the currently clicked model
 */
Function to add click eventListener to 'dropdown' class
remove "model_clicked" and add it to the currently clicked model
Function to add click eventListener to ' dropdown ' class remove " model_clicked " and add it to the currently clicked model
function addClickOnDropdown() {
    $(".dropdown").click(evt => {
        removeAllClicked();
        if ($(evt.target).parents(".model")[0]) {
            addModelClicked($(evt.target).parents(".model")[0]);
        } else if ($(evt.target).parents(".project_header")[0]) {
            addProjectClicked($(evt.target).parents(".project_header")[0]);
        }
    });
}
function addClickOnDropdown ( ) { $ ( ".dropdown" ) . click ( evt => { removeAllClicked ( ) ; if ( $ ( evt . target ) . parents ( ".model" ) [ 0 ] ) { addModelClicked ( $ ( evt . target ) . parents ( ".model" ) [ 0 ] ) ; } else if ( $ ( evt . target ) . parents ( ".project_header" ) [ 0 ] ) { addProjectClicked ( $ ( evt . target ) . parents ( ".project_header" ) [ 0 ] ) ; } } ) ; }
Function to add click eventListener to 'dropdown' class
 remove "model_clicked" and add it to the currently clicked model
Function to add click eventListener to ' dropdown ' class remove " model_clicked " and add it to the currently clicked model