* fix bug #605.
This commit is contained in:
@@ -21,30 +21,17 @@ function loadList(type, id)
|
||||
{
|
||||
divClass = '.nameBox';
|
||||
divID = '#nameBox';
|
||||
customHtml = $(divID).html();
|
||||
}
|
||||
|
||||
var param = 'account=' + account;
|
||||
if(id) param += '&id=' + id;
|
||||
if(type == 'bug')
|
||||
{
|
||||
if(id)
|
||||
{
|
||||
link = createLink('bug', 'ajaxGetUserBugs', 'account=' + account + '&id=' + id);
|
||||
}
|
||||
else
|
||||
{
|
||||
link = createLink('bug', 'ajaxGetUserBugs', 'account=' + account);
|
||||
}
|
||||
link = createLink('bug', 'ajaxGetUserBugs', param);
|
||||
}
|
||||
else if(type == 'task')
|
||||
{
|
||||
if(id)
|
||||
{
|
||||
link = createLink('task', 'ajaxGetUserTasks', 'account=' + account + '&id=' + id);
|
||||
}
|
||||
else
|
||||
{
|
||||
link = createLink('task', 'ajaxGetUserTasks', 'account=' + account);
|
||||
}
|
||||
link = createLink('task', 'ajaxGetUserTasks', param);
|
||||
}
|
||||
|
||||
if(type == 'bug' || type == 'task')
|
||||
@@ -53,7 +40,7 @@ function loadList(type, id)
|
||||
}
|
||||
else if(type == 'custom')
|
||||
{
|
||||
$(divClass).html(customHtml);
|
||||
$(divClass).html($(divID).html());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -41,7 +41,7 @@
|
||||
<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("pris[$i]", $lang->todo->priList, $pri, 'class=form-control');?></td>
|
||||
<td class='text-left'>
|
||||
<td class='text-left' style='overflow:visible'>
|
||||
<div id='<?php echo "nameBox" . ($i+1);?>' class='hidden'><?php echo html::input("names[$i]", '', 'class="text-left form-control"');?></div>
|
||||
<div class='<?php echo "nameBox" . ($i+1);?>'><?php echo html::input("names[$i]", '', 'class="text-left form-control"');?></div>
|
||||
</td>
|
||||
|
||||
Reference in New Issue
Block a user