* Fix program js.
This commit is contained in:
@@ -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,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)
|
||||
{
|
||||
|
||||
@@ -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');
|
||||
}
|
||||
});
|
||||
})
|
||||
|
||||
@@ -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')
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user