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