* [refac bug #62473] Fix error box.
This commit is contained in:
@@ -683,20 +683,20 @@ window.checkEstStartedAndDeadline = function(event)
|
||||
const deadline = $deadline.val();
|
||||
|
||||
const $estStartedDiv = $estStarted.closest('.form-group-wrapper');
|
||||
if(field == 'estStarted') $estStartedDiv.find('.date-tip').remove();
|
||||
if(field == 'estStarted') $estStartedDiv.find('#estStartedTip').remove();
|
||||
if(field == 'estStarted' && estStarted.length > 0 && parentEstStarted.length > 0 && estStarted < parentEstStarted)
|
||||
{
|
||||
let $datetip = $('<div class="date-tip"></div>');
|
||||
$datetip.append('<div class="form-tip text-danger">' + overParentEstStartedLang + '</div>');
|
||||
let $datetip = $('<div class="form-tip text-danger" id="estStartedTip"></div>');
|
||||
$datetip.append('<div>' + overParentEstStartedLang + '</div>');
|
||||
$estStartedDiv.append($datetip);
|
||||
}
|
||||
|
||||
const $deadlineDiv = $deadline.closest('.form-group-wrapper');
|
||||
if(field == 'deadline') $deadlineDiv.find('.date-tip').remove();
|
||||
if(field == 'deadline') $deadlineDiv.find('#deadlineTip').remove();
|
||||
if(field == 'deadline' && deadline.length > 0 && parentDeadline.length > 0 && deadline > parentDeadline)
|
||||
{
|
||||
let $datetip = $('<div class="date-tip"></div>');
|
||||
$datetip.append('<div class="form-tip text-danger">' + overParentDeadlineLang + '</div>');
|
||||
let $datetip = $('<div class="form-tip text-danger" id="deadlineTip"></div>');
|
||||
$datetip.append('<div>' + overParentDeadlineLang + '</div>');
|
||||
$deadlineDiv.append($datetip);
|
||||
}
|
||||
|
||||
|
||||
@@ -455,9 +455,9 @@ function checkEstStartedAndDeadline(event)
|
||||
const $estStartedDiv = $estStarted.closest('.form-group');
|
||||
if(field == 'estStarted' && estStarted.length > 0)
|
||||
{
|
||||
$estStartedDiv.find('.date-tip').remove();
|
||||
let $datetip = $('<div class="date-tip"></div>');
|
||||
if(parentEstStarted.length > 0 && estStarted < parentEstStarted) $datetip.append('<div class="form-tip text-danger">' + overParentEstStartedLang + '</div>');
|
||||
$estStartedDiv.find('#estStartedTip').remove();
|
||||
let $datetip = $('<div class="form-tip text-danger" id="estStartedTip"></div>');
|
||||
if(parentEstStarted.length > 0 && estStarted < parentEstStarted) $datetip.append('<div>' + overParentEstStartedLang + '</div>');
|
||||
|
||||
if(childDateLimit['estStarted'].length > 0 && estStarted > childDateLimit['estStarted'])
|
||||
{
|
||||
@@ -470,9 +470,9 @@ function checkEstStartedAndDeadline(event)
|
||||
const $deadlineDiv = $deadline.closest('.form-group');
|
||||
if(field == 'deadline' && deadline.length > 0)
|
||||
{
|
||||
$deadlineDiv.find('.date-tip').remove();
|
||||
let $datetip = $('<div class="date-tip"></div>');
|
||||
if(parentDeadline.length > 0 && deadline > parentDeadline) $datetip.append('<div class="form-tip text-danger">' + overParentDeadlineLang + '</div>');
|
||||
$deadlineDiv.find('#deadlineTip').remove();
|
||||
let $datetip = $('<div class="form-tip text-danger" id="deadlineTip"></div>');
|
||||
if(parentDeadline.length > 0 && deadline > parentDeadline) $datetip.append('<div>' + overParentDeadlineLang + '</div>');
|
||||
|
||||
if(childDateLimit['deadline'].length > 0 && deadline < childDateLimit['deadline'])
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user