+ complete task #294, #295 and #296:add searchStory and searchTask function to the edit view of bug, task and testcase.

This commit is contained in:
fujia
2010-08-30 07:24:52 +00:00
parent b0a5225276
commit a891420051
12 changed files with 237 additions and 4 deletions
+9 -3
View File
@@ -145,7 +145,9 @@ var userList = "<?php echo join(',', array_keys($users));?>".split(',');
tools = simpleTools;
$(function() {
$("#mailto").autocomplete(userList, { multiple: true, mustMatch: true});
})
$("#searchStories").colorbox({width:680, height:400, iframe:true, transition:'none'});
$("#searchTasks").colorbox({width:680, height:400, iframe:true, transition:'none'});
});
</script>
<form method='post' target='hiddenwin' enctype='multipart/form-data'>
<div class='yui-d0'>
@@ -249,11 +251,15 @@ $(function() {
</tr>
<tr>
<td class='rowhead'><?php echo $lang->bug->story;?></td>
<td><span id='storyIdBox'><?php echo html::select('story', $stories, $bug->story, 'class=select-3');?></span></td>
<td><span id='storyIdBox'><?php echo html::select('story', $stories, $bug->story, "class=select-3");?></span>
<?php echo html::a($this->createLink('search', 'select', "productID=$productID&projectID=$bug->project&module=story&storyID=$bug->story"), $lang->go, "_blank", "id='searchStories'");?>
</td>
</tr>
<tr>
<td class='rowhead'><?php echo $lang->bug->task;?></td>
<td><span id='taskIdBox'><?php echo html::select('task', $tasks, $bug->task, 'class=select-3');?></td>
<td><span id='taskIdBox'><?php echo html::select('task', $tasks, $bug->task, 'class=select-3');?></span>
<?php echo html::a($this->createLink('search', 'select', "productID=$productID&projectID=$bug->project&module=task&taskID=$bug->task"), $lang->go, "_blank", "id='searchTasks'");?>
</td>
</tr>
</table>
</fieldset>