This commit is contained in:
wangyidong
2014-07-29 07:48:55 +00:00
parent 274ea6e4ec
commit 535a878320
2 changed files with 6 additions and 19 deletions
+5 -18
View File
@@ -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());
}
}
+1 -1
View File
@@ -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>