GoalModelEditor/FrontEnd/public/js/dashboard.js
/**
 * Helper function to be called every time after any change has been made to the page
 * To make sure all newly added items have the right eventListeners
 */
Helper function to be called every time after any change has been made to the page
To make sure all newly added items have the right eventListeners
Helper function to be called every time after any change has been made to the page To make sure all newly added items have the right eventListeners
function addListenersToNewItem() {
    addClickOnProject();
    addClickOnNewModel();
    addClickOnModel();
    addClickOnRenameProject();
    addClickOnDeleteProject();
    addClickOnMore();
    addClickOnRenameModel();
    addClickOnDeleteModel();
    addDbClickOnModel();
    addDbClickOnTemplate();
    addClickOnDropdown();
    removeDblclickOnMore();
    removeClickOnModelFromProject();
    addClickOnTemplate();
    addClickOnRenameTemplate();
    addClickOnDeleteTemplate();
}
function addListenersToNewItem ( ) { addClickOnProject ( ) ; addClickOnNewModel ( ) ; addClickOnModel ( ) ; addClickOnRenameProject ( ) ; addClickOnDeleteProject ( ) ; addClickOnMore ( ) ; addClickOnRenameModel ( ) ; addClickOnDeleteModel ( ) ; addDbClickOnModel ( ) ; addDbClickOnTemplate ( ) ; addClickOnDropdown ( ) ; removeDblclickOnMore ( ) ; removeClickOnModelFromProject ( ) ; addClickOnTemplate ( ) ; addClickOnRenameTemplate ( ) ; addClickOnDeleteTemplate ( ) ; }
Helper function to be called every time after any change has been made to the page
 To make sure all newly added items have the right eventListeners
Helper function to be called every time after any change has been made to the page To make sure all newly added items have the right eventListeners