GoalModelEditor/FrontEnd/public/js/dashboard.js
/**
 * Function to add click eventListener to 'new-model' class
 */
Function to add click eventListener to 'new-model' class
Function to add click eventListener to ' new - model ' class
function addClickOnNewModel() {
    $(".new-model").click(evt => {
        evt.stopImmediatePropagation();
        removeAllClicked();
        let parentNode = $(evt.target).parents(".project")[0];
        setPID($(parentNode).attr("id"));
        addProjectClicked($(parentNode).find(".project_header")[0]);
        $("#add-model").modal("toggle");
    });
}
function addClickOnNewModel ( ) { $ ( ".new-model" ) . click ( evt => { evt . stopImmediatePropagation ( ) ; removeAllClicked ( ) ; let parentNode = $ ( evt . target ) . parents ( ".project" ) [ 0 ] ; setPID ( $ ( parentNode ) . attr ( "id" ) ) ; addProjectClicked ( $ ( parentNode ) . find ( ".project_header" ) [ 0 ] ) ; $ ( "#add-model" ) . modal ( "toggle" ) ; } ) ; }
Function to add click eventListener to 'new-model' class
Function to add click eventListener to ' new - model ' class