mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-11 01:44:34 +08:00
Fixed the issue, tested for all 3 reported scenarios
This commit is contained in:
parent
67f4555584
commit
7d093fa11d
1 changed files with 8 additions and 2 deletions
|
@ -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 &&
|
||||
|
|
Loading…
Reference in a new issue