Fixed the issue, tested for all 3 reported scenarios

This commit is contained in:
Zanz2 2018-08-31 11:18:18 +02:00
parent 67f4555584
commit 7d093fa11d

View file

@ -546,8 +546,14 @@
var descriptionValid = textValidator(ev, $descrTextarea, 0,
<%= Constants::TEXT_MAX_LENGTH %>, false, $tinyMCEInput);
var $table_names = $form.find(".table_name");
var table_nameValid = textValidator(ev, $table_names, 1,
<%= Constants::NAME_MAX_LENGTH %>);
var table_nameValid;
if ($table_names.length > 0) // if table exists check its title, if not, its validated
{
table_nameValid = textValidator(ev, $table_names, 1,
<%= Constants::NAME_MAX_LENGTH %>);
}else{
table_nameValid = true
}
if (DragNDropSteps.filesStatus() &&
checklistsValid &&