GoalModelEditor/FrontEnd/public/js/dashboard.js
/**
 * Function to add click eventListener to 'delete-model' class
 */
Function to add click eventListener to 'delete-model' class
Function to add click eventListener to ' delete - model ' class
function addClickOnDeleteModel() {
    $(".delete-model").click(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"));
        $("#delete-model").modal("toggle");
    })
}
function addClickOnDeleteModel ( ) { $ ( ".delete-model" ) . click ( 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" ) ) ; $ ( "#delete-model" ) . modal ( "toggle" ) ; } ) }
Function to add click eventListener to 'delete-model' class
Function to add click eventListener to ' delete - model ' class