From b697037e2e894cebd6daf941817d99c3d69dfc4b Mon Sep 17 00:00:00 2001 From: lanzongjun Date: Thu, 3 Nov 2022 16:50:21 +0800 Subject: [PATCH] fix code meeting --- module/story/view/header.html.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/module/story/view/header.html.php b/module/story/view/header.html.php index 94df67a275..764ee86162 100644 --- a/module/story/view/header.html.php +++ b/module/story/view/header.html.php @@ -125,11 +125,11 @@ function loadProductBranches(productID) $('#branches0').next('.picker').remove(); $('#branches0').chosen(); - $.get(createLink('tree', 'ajaxGetOptionMenu', 'productID=' + productID + '&viewtype=story&branch=0' + '&rootModuleID=0&returnType=html&fieldID=0' + '&needManage=false&extra=¤tModuleID=0'), function(moduleData) + $.get(createLink('tree', 'ajaxGetOptionMenu', 'productID=' + productID + '&viewtype=story&branch=0' + '&rootModuleID=0&returnType=html&fieldID=0' + '&needManage=false&extra=¤tModuleID=0'), function(moduleOption) { - if(moduleData) + if(moduleOption) { - $('#modules0').replaceWith(moduleData); + $('#modules0').replaceWith(moduleOption); $('#modules0' + "_chosen").remove(); $('#modules0').next('.picker').remove(); $('#modules0').chosen(); @@ -137,11 +137,11 @@ function loadProductBranches(productID) }); var expired = config.currentMethod == 'create' ? 'unexpired' : ''; - $.get(createLink('product', 'ajaxGetPlans', 'productID=' + productID + '&branch=0' + '&planID=' + $('#plan').val() + '&fieldID=0' + '&needCreate=false&expired='+ expired +'¶m=skipParent,' + config.currentMethod), function(planData) + $.get(createLink('product', 'ajaxGetPlans', 'productID=' + productID + '&branch=0' + '&planID=' + $('#plan').val() + '&fieldID=0' + '&needCreate=false&expired='+ expired +'¶m=skipParent,' + config.currentMethod), function(planOption) { - if(planData) + if(planOption) { - $('#plans0').replaceWith(planData); + $('#plans0').replaceWith(planOption); $('#plans0' + "_chosen").remove(); $('#plans0').next('.picker').remove(); $('#plans0').chosen();