GoalModelEditor/FrontEnd/public/js/dashboard.js
/**
 * Function to add click eventListener to 'rename-project' class
 */
Function to add click eventListener to 'rename-project' class
Function to add click eventListener to ' rename - project ' class
function addClickOnRenameProject() {
    $(".rename-project").click(evt => {
        evt.stopImmediatePropagation();
        removeAllClicked();
        let parentNode = $(evt.target).parents(".project")[0];
        setPID($(parentNode).attr("id"));
        let projectName = $(parentNode).find(".project_name").eq(0).html();
        addProjectClicked($(parentNode).find(".project_header")[0]);
        putProjectNameInModal(projectName);
    });
}
function addClickOnRenameProject ( ) { $ ( ".rename-project" ) . click ( evt => { evt . stopImmediatePropagation ( ) ; removeAllClicked ( ) ; let parentNode = $ ( evt . target ) . parents ( ".project" ) [ 0 ] ; setPID ( $ ( parentNode ) . attr ( "id" ) ) ; let projectName = $ ( parentNode ) . find ( ".project_name" ) . eq ( 0 ) . html ( ) ; addProjectClicked ( $ ( parentNode ) . find ( ".project_header" ) [ 0 ] ) ; putProjectNameInModal ( projectName ) ; } ) ; }
Function to add click eventListener to 'rename-project' class
Function to add click eventListener to ' rename - project ' class