* Fix bug #45001.
This commit is contained in:
@@ -699,7 +699,7 @@ window.changeBugProduct = function()
|
||||
if(productID) $('#batchCreateBugButton').attr('href', $.createLink('bug', 'batchCreate', 'productID=' + productID + '&branch=&executionID=' + executionID));
|
||||
};
|
||||
|
||||
window.linkPlanStory = function()
|
||||
$(document).off('click', '#linkStoryByPlan button[type="submit"]').on('click', '#linkStoryByPlan button[type="submit"]', function()
|
||||
{
|
||||
const planID = $('[name=plan]').val();
|
||||
if(planID)
|
||||
@@ -707,4 +707,5 @@ window.linkPlanStory = function()
|
||||
var param = "¶m=executionID=" + executionID + ",browseType=" + browseType + ",orderBy=id_asc,groupBy=" + groupBy;
|
||||
$.ajaxSubmit({url: $.createLink('execution', 'importPlanStories', 'executionID=' + executionID + '&planID=' + planID + '&productID=0&fromMethod=taskKanban&extra=' + param)});
|
||||
}
|
||||
};
|
||||
return false;
|
||||
})
|
||||
|
||||
@@ -286,29 +286,37 @@ div
|
||||
)
|
||||
);
|
||||
|
||||
$linkStoryByPlanTips = $lang->execution->linkNormalStoryByPlanTips;
|
||||
$linkStoryByPlanTips = $execution->multiple ? $linkStoryByPlanTips : str_replace($lang->execution->common, $lang->projectCommon, $linkStoryByPlanTips);
|
||||
|
||||
modal
|
||||
(
|
||||
setID('linkStoryByPlan'),
|
||||
setData('size', '500px'),
|
||||
to::header
|
||||
setID('linkStoryByPlan'),
|
||||
set::modalProps(array('title' => $lang->execution->linkStoryByPlan)),
|
||||
div
|
||||
(
|
||||
h4($lang->execution->linkStoryByPlan),
|
||||
"({$lang->execution->linkStoryByPlanTips})"
|
||||
setClass('flex-auto'),
|
||||
icon('info-sign', setClass('warning-pale rounded-full mr-1')),
|
||||
$linkStoryByPlanTips
|
||||
),
|
||||
inputGroup
|
||||
form
|
||||
(
|
||||
setClass('mt-1'),
|
||||
picker
|
||||
setClass('text-center', 'py-4'),
|
||||
set::actions(array('submit')),
|
||||
set::submitBtnText($lang->execution->linkStory),
|
||||
formGroup
|
||||
(
|
||||
set::width(300),
|
||||
setID('plan'),
|
||||
set::name('plan'),
|
||||
set::items($allPlans)
|
||||
),
|
||||
span
|
||||
(
|
||||
setClass('input-group-btn ml-2'),
|
||||
btn(setClass('primary'), setID('toStoryButton'), set::onclick('linkPlanStory()'), $lang->execution->linkStory)
|
||||
set::label($lang->execution->selectStoryPlan),
|
||||
set::required(true),
|
||||
setClass('text-left'),
|
||||
picker
|
||||
(
|
||||
set::name('plan'),
|
||||
set::required(true),
|
||||
set::items($allPlans)
|
||||
)
|
||||
)
|
||||
)
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user