From 39765cdd131e2b6d83def2fa8f38d3476b53c503 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BB=94=E5=93=A5?= Date: Thu, 21 Dec 2017 14:16:45 +0800 Subject: [PATCH] * Fix bug. --- module/story/js/batchedit.js | 8 ++++---- module/story/view/batchedit.html.php | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/module/story/js/batchedit.js b/module/story/js/batchedit.js index 65980335e0..864b39fb39 100644 --- a/module/story/js/batchedit.js +++ b/module/story/js/batchedit.js @@ -30,12 +30,12 @@ function loadBranches(product, branch, storyID) if(typeof(branch) == 'undefined') branch = 0; if(!branch) branch = 0; - moduleLink = createLink('tree', 'ajaxGetOptionMenu', 'productID=' + product + '&viewtype=story&branch=' + branch + '&rootModuleID=0&returnType=html&fieldID=' + storyID + '&needManage=true'); - $('#modules' + storyID).parent('td > .input-group').load(moduleLink, function(){$('#modules' + storyID).chosen(defaultChosenOptions);}); + moduleLink = createLink('tree', 'ajaxGetOptionMenu', 'productID=' + product + '&viewtype=story&branch=' + branch + '&rootModuleID=0&returnType=html&fieldID=' + storyID); + $('#modules' + storyID).parent('td').load(moduleLink, function(){$('#modules' + storyID).chosen(defaultChosenOptions);}); planID = $('#plans' + storyID).val(); - planLink = createLink('product', 'ajaxGetPlans', 'productID=' + product + '&branch=' + branch + '&planID=' + planID + '&fieldID=' + storyID + '&needCreate=true'); - $('#plans' + storyID).parent('td > .input-group').load(planLink, function(data){$('#plans' + storyID).chosen(defaultChosenOptions);}); + planLink = createLink('product', 'ajaxGetPlans', 'productID=' + product + '&branch=' + branch + '&planID=' + planID + '&fieldID=' + storyID); + $('#plans' + storyID).parent('td').load(planLink, function(){$('#plans' + storyID).chosen(defaultChosenOptions);}); } $(document).ready(removeDitto());//Remove 'ditto' in first row. diff --git a/module/story/view/batchedit.html.php b/module/story/view/batchedit.html.php index 567590ca8f..711c626b31 100644 --- a/module/story/view/batchedit.html.php +++ b/module/story/view/batchedit.html.php @@ -88,10 +88,10 @@ foreach(explode(',', $showFields) as $field) ' style='overflow:visible'> -
module, "class='form-control chosen'");?>
+ module, "class='form-control chosen'");?> ' style='overflow:visible'> -
plan, "class='form-control chosen'");?>
+ plan, "class='form-control chosen'");?>