* fix a bug.

This commit is contained in:
wyd621
2014-05-03 03:59:46 +00:00
parent 682b53831c
commit 26e54d703d
2 changed files with 19 additions and 19 deletions
+18 -18
View File
@@ -22,28 +22,28 @@ function loadList(type, id)
divClass = '.nameBox';
divID = '#nameBox';
customHtml = $(divID).html();
}
if(type == 'bug')
if(type == 'bug')
{
if(id)
{
if(id)
{
link = createLink('bug', 'ajaxGetUserBugs', 'account=' + account + '&id=' + id);
}
else
{
link = createLink('bug', 'ajaxGetUserBugs', 'account=' + account);
}
link = createLink('bug', 'ajaxGetUserBugs', 'account=' + account + '&id=' + id);
}
else if(type == 'task')
else
{
if(id)
{
link = createLink('task', 'ajaxGetUserTasks', 'account=' + account + '&id=' + id);
}
else
{
link = createLink('task', 'ajaxGetUserTasks', 'account=' + account);
}
link = createLink('bug', 'ajaxGetUserBugs', 'account=' + account);
}
}
else if(type == 'task')
{
if(id)
{
link = createLink('task', 'ajaxGetUserTasks', 'account=' + account + '&id=' + id);
}
else
{
link = createLink('task', 'ajaxGetUserTasks', 'account=' + account);
}
}
+1 -1
View File
@@ -39,7 +39,7 @@
<?php for($i = 0; $i < $config->todo->batchCreate; $i++):?>
<tr class='text-center'>
<td><?php echo $i+1;?></td>
<td><?php echo html::select("types[$i]", $lang->todo->typeList, '', "onchange=loadList(this.value,$i+1) class='form-control'");?></td>
<td><?php echo html::select("types[$i]", $lang->todo->typeList, '', "onchange='loadList(this.value, " . ($i + 1) . ")' class='form-control'");?></td>
<td><?php echo html::select("pris[$i]", $lang->todo->priList, $pri, 'class=form-control');?></td>
<td>
<div id='<?php echo "nameBox" . ($i+1);?>' class='hidden'><?php echo html::input("names[$i]", '', 'class="text-left form-control"');?></div>