* Edit comments.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user