GoalModelEditor/FrontEnd/public/js/dashboard.js
/**
 * Function to add dblclick eventListener to 'model' class
 */
Function to add dblclick eventListener to 'model' class
Function to add dblclick eventListener to ' model ' class
function addDbClickOnModel() {
    $(".model").dblclick(evt => {
        evt.stopImmediatePropagation();
        let parentNode = null;
        if ($(evt.target).hasClass("model")) {
            parentNode = evt.target;
        } else {
            parentNode = $(evt.target).parents(".model")[0];
        }
        setMID($(parentNode).attr("id"));
        window.location.href = "/goal_model/edit?MID=" + getMID();
    });
}
function addDbClickOnModel ( ) { $ ( ".model" ) . dblclick ( evt => { evt . stopImmediatePropagation ( ) ; let parentNode = null ; if ( $ ( evt . target ) . hasClass ( "model" ) ) { parentNode = evt . target ; } else { parentNode = $ ( evt . target ) . parents ( ".model" ) [ 0 ] ; } setMID ( $ ( parentNode ) . attr ( "id" ) ) ; window . location . href = "/goal_model/edit?MID=" + getMID ( ) ; } ) ; }
Function to add dblclick eventListener to 'model' class
Function to add dblclick eventListener to ' model ' class