* fix a bug.
This commit is contained in:
+18
-18
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user