* Code for task #49888.

This commit is contained in:
zhangzilong
2022-03-09 10:41:46 +08:00
parent d04161c0cc
commit 6327b37eae
5 changed files with 52 additions and 28 deletions
+21
View File
@@ -270,6 +270,27 @@ function loadModuleRelated()
setStories(moduleID, executionID);
}
/**
* Set lane.
*
* @param int $regionID
* @access public
* @return void
*/
function setLane(regionID)
{
console.log(regionID);
laneLink = createLink('kanban', 'ajaxGetLanes', 'regionID=' + regionID + '&type=task&field=lane');
$.get(laneLink, function(lane)
{
if(!lane) lane = "<select id='lane' name='lane' class='form-control'></select>";
$('#lane').replaceWith(lane);
$("#lane" + "_chosen").remove();
$("#lane").next('.picker').remove();
$("#lane").chosen();
});
}
/* Get select of stories.*/
function setStories(moduleID, executionID)
{