* finish task #6466.

This commit is contained in:
wangyidong
2019-10-12 10:01:16 +08:00
parent 54eaa0d545
commit fc97ecc2da
2 changed files with 4 additions and 3 deletions
+1
View File
@@ -39,6 +39,7 @@ $lang->tree->addChild = "增加子模块";
$lang->tree->confirmDelete = '该模块及其子模块都会被删除,您确定删除吗?';
$lang->tree->confirmDeleteLine = "您确定删除该{$lang->productCommon}线吗?";
$lang->tree->confirmRoot = "模块的所属{$lang->productCommon}修改,会关联修改该模块下的需求、Bug、用例的所属{$lang->productCommon},以及{$lang->projectCommon}和{$lang->productCommon}的关联关系。该操作比较危险,请谨慎操作。是否确认修改?";
$lang->tree->confirmRoot4Doc = "模块的所属文档库修改,会关联修改该模块下的文档的关联关系。该操作比较危险,请谨慎操作。是否确认修改?";
$lang->tree->successSave = '成功保存';
$lang->tree->successFixed = '成功修正数据!';
$lang->tree->repeatName = '模块名“%s”已经存在!';
+3 -3
View File
@@ -83,16 +83,16 @@ function getProductModules(productID)
}
$(function()
{
if(type == 'doc') return;
$('#root').change(function()
{
if($(this).val() == currentRoot) return true;
if(!confirm('<?php echo $lang->tree->confirmRoot?>'))
var confirmRoot = <?php echo json_encode($type == 'doc' ? $lang->tree->confirmRoot4Doc : $lang->tree->confirmRoot);?>;
if(!confirm(confirmRoot))
{
$('#root').val(currentRoot);
$('#root').trigger('chosen:updated');
}
getProductModules($(this).val());
if(type != 'doc') getProductModules($(this).val());
})
})
function loadDocModule(libID)