* Fix program js.

This commit is contained in:
Yagami
2020-11-18 14:58:07 +08:00
parent 568c524c85
commit ec6ced01d5
13 changed files with 81 additions and 137 deletions
+11
View File
@@ -99,6 +99,17 @@ function computeEndDate(delta)
if(!beginDate) return;
delta = parseInt(delta);
if(delta == 999)
{
$('#end').val('');
$('#end').attr('disabled', 'disabled');
return false;
}
else
{
$('#end').removeAttr('disabled');
}
beginDate = convertStringToDate(beginDate);
if((delta == 7 || delta == 14) && (beginDate.getDay() == 1))
{
+1 -15
View File
@@ -1,18 +1,4 @@
$(function()
{
$('#parent').change();
$('#longTime').change(function()
{
if($(this).prop('checked'))
{
$('#end').attr('disabled', 'disabled');
}
else
{
$('#end').removeAttr('disabled');
}
});
})
$(function(){$('#parent').change();})
function setAclList(programID)
{
-15
View File
@@ -9,18 +9,3 @@ function setAclList(programID)
$('.aclBox').html($('#PGMAcl').html());
}
}
$(function()
{
$('#longTime').change(function()
{
if($(this).prop('checked'))
{
$('#end').attr('disabled', 'disabled');
}
else
{
$('#end').removeAttr('disabled');
}
});
})
-11
View File
@@ -1,17 +1,6 @@
$(function()
{
$('#copyProjects a').click(function(){setCopyProject($(this).data('id')); $('#copyProjectModal').modal('hide')});
$('#longTime').change(function()
{
if($(this).prop('checked'))
{
$('#end').attr('disabled', 'disabled');
}
else
{
$('#end').removeAttr('disabled');
}
});
setAclList($("#parent").val());
if(typeof(currentPlanID) == 'undefined')
-13
View File
@@ -1,18 +1,5 @@
$(function()
{
$('#longTime').change(function()
{
if($(this).prop('checked'))
{
$('#end').val('').attr('disabled', 'disabled');
$('#days').val('');
}
else
{
$('#end').removeAttr('disabled');
}
});
$('#parent').click(function()
{
if(!confirm(PGMChangeTips)) return false;