* Edit comments.

This commit is contained in:
leiyong
2022-06-17 02:06:02 +00:00
parent 1706ec6a42
commit a87a9bc2fb
2 changed files with 6 additions and 6 deletions

View File

@@ -219,7 +219,7 @@ $('[data-toggle="popover"]').popover();
$('#planForm').submit(function()
{
// Clear all error messages.
/* Clear all error messages. */
$('input[name^=begin]').each(function()
{
var beginDateID = $(this).attr('id');
@@ -242,11 +242,11 @@ $('#planForm').submit(function()
$('#help' + beginDateID).remove();
$('#help' + endDateID).remove();
// Invalid data is skipped.
/* Invalid data is skipped. */
var nameVal = $('#' + nameID).val()
if(!nameVal) return;
// Check if the begin date is empty.
/* Check if the begin date is empty. */
if(!beginDate)
{
submitForm = false;