* complete task 223:send email to users when task has changed.

This commit is contained in:
fujia
2010-06-21 06:51:15 +00:00
parent 9b32e01e34
commit 0d8748f2ba
7 changed files with 111 additions and 4 deletions
+9 -1
View File
@@ -32,7 +32,11 @@ function copyStoryTitle()
storyTitle = storyTitle.substr(storyTitle.lastIndexOf(':')+ 1);
$('#name').attr('value', storyTitle);
}
function sendMailTo()
{
var userList = "<?php echo join(',', array_keys($users));?>".split(',');
$("#mailto").autocomplete(userList, { multiple: true, mustMatch: true});
}
/* 设置预览的链接。*/
function setPreview()
{
@@ -84,6 +88,10 @@ $(document).ready(function()
<th class='rowhead'><?php echo $lang->task->owner;?></th>
<td><?php echo html::select('owner', $members, '', 'class=select-3');?>
</tr>
<tr>
<th class='rowhead'><?php echo $lang->task->mailto;?></th>
<td> <?php echo html::input('mailto', '', 'class=text-1');?> </td>
</tr>
<tr>
<th class='rowhead'><?php echo $lang->task->story;?></th>
<td>