GoalModelEditor/FrontEnd/public/js/dashboard.js
/**
 * Helper Function for renaming the project - put the clicked project name in the modal
 *
 * @param {String} projectName - the clicked project name
 */
Helper Function for renaming the project - put the clicked project name in the modal
@param {String} projectName - the clicked project name
Helper Function for renaming the project - put the clicked project name in the modal @param { String } projectName - the clicked project name
function putProjectNameInModal(projectName) {
    $("#rename_project .modal-body input").val(projectName);
    let $target = $("#rename-project");
    $target.data("triggered", true);
    setTimeout(function() {
        if ($target.data("triggered")) {
            $target.modal("show").data("triggered", false);
        }
    }, 300);
    return false;
}
function putProjectNameInModal ( projectName ) { $ ( "#rename_project .modal-body input" ) . val ( projectName ) ; let $target = $ ( "#rename-project" ) ; $target . data ( "triggered" , true ) ; setTimeout ( function ( ) { if ( $target . data ( "triggered" ) ) { $target . modal ( "show" ) . data ( "triggered" , false ) ; } } , 300 ) ; return false ; }
Helper Function for renaming the project - put the clicked project name in the modal
 @param {String} projectName - the clicked project name
Helper Function for renaming the project - put the clicked project name in the modal @param { String } projectName - the clicked project name
// Set the modal input to the clicked project name // Set time out so that the project name gets rendered in the modal