Files
EasySoft-ZenTaoPMS/module/testcase/js/create.ui.js
T

38 lines
840 B
JavaScript

function changeProduct(event)
{
const productID = $(event.target).val();
loadProductBranches(productID);
loadProductModules(productID);
loadProductStories(productID);
loadScenes(productID);
}
function changeBranch(event)
{
const productID = $('[name=product]').val();
loadProductModules(productID);
loadProductStories(productID);
}
function clickRefresh(event)
{
const productID = $('[name=product]').val();
loadProductModules(productID);
}
function changeStory(event)
{
const storyID = $(event.target).val();
if(storyID)
{
const storyLink = $.createLink('story', 'view', 'storyID=' + storyID);
$('#preview').parent().removeClass('hidden');
$('#preview').attr('href', storyLink);
}
else
{
$('#preview').parent().addClass('hidden');
}
}