Skip to content
Snippets Groups Projects
Commit 9e48a9dc authored by Robert Goldmann's avatar Robert Goldmann
Browse files

#338 - validate template name

parent 49b7e0b3
Branches
Tags
No related merge requests found
......@@ -31,15 +31,15 @@ $(document).ready(function()
{
// validate template name
let templateName = document.getElementById('template-name').value;
// if(templateName.length === 0)
// {
// addTooltip('template-name', templateNameValidationMessage);
// return;
// }
// else
// {
// removeTooltip('template-name');
// }
if(templateName.length === 0)
{
addTooltip('template-name', templateNameValidationMessage);
return;
}
else
{
removeTooltip('template-name');
}
// insert additional input for template name
let inputTemplateName = document.createElement('input');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment