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