* [bug#56000,doing,0.3h] add switch module method.
This commit is contained in:
@@ -295,3 +295,17 @@ window.renderRowData = function($row, index, row)
|
||||
|
||||
setLineIndex();
|
||||
}
|
||||
|
||||
window.loadStories = function()
|
||||
{
|
||||
const executionID = $('[name=execution]').val();
|
||||
const storyID = $('[name=story]').val();
|
||||
const moduleID = $('[name=module]').val();
|
||||
const link = $.createLink('story', 'ajaxGetExecutionStories', 'executionID=' + executionID + '&productID=0&branch=all&moduleID=' + moduleID + '&storyID=' + storyID + '&pageType=&type=full&status=active');
|
||||
$.getJSON(link, function(storyItems)
|
||||
{
|
||||
let $storyPicker = $('[name=story]').zui('picker');
|
||||
$storyPicker.render({items: storyItems});
|
||||
$storyPicker.$.setValue(storyID);
|
||||
});
|
||||
}
|
||||
|
||||
@@ -208,7 +208,8 @@ detailBody
|
||||
set::value($task->module),
|
||||
set::items($moduleOptions),
|
||||
set::width(2/3),
|
||||
set::required(true)
|
||||
set::required(true),
|
||||
on::change('loadStories')
|
||||
)
|
||||
),
|
||||
div
|
||||
|
||||
Reference in New Issue
Block a user