GoalModelEditor/FrontEnd/public/js/dashboard.js
/**
 * Helper function to change style of collapse-button
 *
 * @param {HTMLElement} collapseBtn
 */
Helper function to change style of collapse-button
@param {HTMLElement} collapseBtn
Helper function to change style of collapse - button @param { HTMLElement } collapseBtn
function changeCollapseStyle(collapseBtn) {
    if ($(collapseBtn).hasClass("fa-plus-square")) {
        $(collapseBtn).addClass("fa-minus-square");
        $(collapseBtn).removeClass("fa-plus-square");
    } else if ($(collapseBtn).hasClass("fa-minus-square")) {
        $(collapseBtn).removeClass("fa-minus-square");
        $(collapseBtn).addClass("fa-plus-square");
    }
}
function changeCollapseStyle ( collapseBtn ) { if ( $ ( collapseBtn ) . hasClass ( "fa-plus-square" ) ) { $ ( collapseBtn ) . addClass ( "fa-minus-square" ) ; $ ( collapseBtn ) . removeClass ( "fa-plus-square" ) ; } else if ( $ ( collapseBtn ) . hasClass ( "fa-minus-square" ) ) { $ ( collapseBtn ) . removeClass ( "fa-minus-square" ) ; $ ( collapseBtn ) . addClass ( "fa-plus-square" ) ; } }
Helper function to change style of collapse-button
 @param {HTMLElement} collapseBtn
Helper function to change style of collapse - button @param { HTMLElement } collapseBtn