* fix a bug for can not copy module in bug and case.

This commit is contained in:
wangyidong
2013-01-10 06:03:32 +00:00
parent b7e0796310
commit 3e30398b9c

View File

@@ -1,7 +1,8 @@
function syncModule(rootID, type)
{
if(type == 'story') moduleID = $('#productModule').val();
if(type == 'task') moduleID = $('#projectModule').val();
moduleID = type == 'task' ? $('#projectModule').val() : $('#productModule').val();
type = type == 'task' ? 'task' : 'story';
link = createLink('tree', 'ajaxGetSonModules', 'moduleID=' + moduleID + '&rootID=' + rootID + '&type=' + type);
$.getJSON(link, function(modules)
{