GoalModelEditor/FrontEnd/public/js/dashboard.js
/**
 * Function to add click eventListener to 'more' class -- not collapsing the model list
 */
Function to add click eventListener to 'more' class -- not collapsing the model list
Function to add click eventListener to ' more ' class -- not collapsing the model list
function addClickOnMore() {
    $(".more").click(evt => {
        evt.stopPropagation();
        removeAllClicked();
        let toggleNode = null;
        if ($(evt.target).hasClass("dropdown")) {
            toggleNode = evt.target;
        } else if ($(evt.target).parents(".dropdown")[0]) {
            toggleNode = $(evt.target).parents(".dropdown")[0];
        } else {
            toggleNode = $(evt.target).children(".dropdown")[0];
        }
        if ($(evt.target).parents(".model")[0]) {
            addModelClicked($(evt.target).parents(".model")[0]);
        } else if ($(evt.target).parents(".project_header")[0]) {
            addProjectClicked($(evt.target).parents(".project_header")[0]);
        }
        $(toggleNode).dropdown("toggle");
    });
}
function addClickOnMore ( ) { $ ( ".more" ) . click ( evt => { evt . stopPropagation ( ) ; removeAllClicked ( ) ; let toggleNode = null ; if ( $ ( evt . target ) . hasClass ( "dropdown" ) ) { toggleNode = evt . target ; } else if ( $ ( evt . target ) . parents ( ".dropdown" ) [ 0 ] ) { toggleNode = $ ( evt . target ) . parents ( ".dropdown" ) [ 0 ] ; } else { toggleNode = $ ( evt . target ) . children ( ".dropdown" ) [ 0 ] ; } if ( $ ( evt . target ) . parents ( ".model" ) [ 0 ] ) { addModelClicked ( $ ( evt . target ) . parents ( ".model" ) [ 0 ] ) ; } else if ( $ ( evt . target ) . parents ( ".project_header" ) [ 0 ] ) { addProjectClicked ( $ ( evt . target ) . parents ( ".project_header" ) [ 0 ] ) ; } $ ( toggleNode ) . dropdown ( "toggle" ) ; } ) ; }
Function to add click eventListener to 'more' class -- not collapsing the model list
Function to add click eventListener to ' more ' class -- not collapsing the model list