GoalModelEditor/FrontEnd/public/js/dashboard.js
/**
 * Function to add click eventListener to 'template' class
 */
Function to add click eventListener to 'template' class
Function to add click eventListener to ' template ' class
function addClickOnTemplate() {
    $(".template").click(evt => {
        removeAllClicked();
        let parentNode = null;
        if ($(evt.target).hasClass("template")) {
            parentNode = evt.target;
        } else {
            parentNode = $(evt.target).parents(".template")[0];
        }
        setTID($(parentNode).attr("id"));
        addTemplateClicked(parentNode);
    });
}
function addClickOnTemplate ( ) { $ ( ".template" ) . click ( evt => { removeAllClicked ( ) ; let parentNode = null ; if ( $ ( evt . target ) . hasClass ( "template" ) ) { parentNode = evt . target ; } else { parentNode = $ ( evt . target ) . parents ( ".template" ) [ 0 ] ; } setTID ( $ ( parentNode ) . attr ( "id" ) ) ; addTemplateClicked ( parentNode ) ; } ) ; }
Function to add click eventListener to 'template' class
Function to add click eventListener to ' template ' class