Files
EasySoft-ZenTaoPMS/trunk/module/todo/view/footer.html.php
wangchunsheng e59e2f54ed + add the feature of private.
+ add the feature of 'not set date'.
2009-11-02 03:11:06 +00:00

47 lines
1022 B
PHP

<script language='Javascript'>
account='<?php echo $app->user->account;?>';
customHtml = $('#nameBox').html();
function loadList(type)
{
if(type == 'bug')
{
link = createLink('bug', 'ajaxGetUserBugs', 'account=' + account);
}
else if(type == 'task')
{
link = createLink('task', 'ajaxGetUserTasks', 'account=' + account);
}
if(type == 'bug' || type == 'task')
{
$('#nameBox').load(link);
}
else if(type == 'custom')
{
$('#nameBox').html(customHtml);
}
}
function selectNext()
{
endIndex = $("#begin ").get(0).selectedIndex + 2;
$("#end ").get(0).selectedIndex = endIndex;
}
function switchDateFeature(switcher)
{
if(switcher.checked)
{
$('#begin').attr('disabled','disabled');
$('#end').attr('disabled','disabled');
}
else
{
$('#begin').removeAttr('disabled');
$('#end').removeAttr('disabled');
}
}
selectNext();
</script>
<?php include '../../common/footer.html.php';?>