23 lines
558 B
JavaScript
23 lines
558 B
JavaScript
$(function()
|
|
{
|
|
if(typeof type != 'undefined') $('#mainNavbar .nav a[data-id=' + type + ']').addClass('active');
|
|
});
|
|
|
|
|
|
/**
|
|
* 渲染需求下拉框中的选项。
|
|
* Options in the render story drop-down box.
|
|
*
|
|
* @access public
|
|
* @return void
|
|
*/
|
|
function loadStory()
|
|
{
|
|
const productID = $(this).val();
|
|
const link = $.createLink('design', 'ajaxGetProductStories', 'productID=' + productID + '&projectID=' + projectID + '&status=active&hasParent=false');
|
|
$.get(link, function(data)
|
|
{
|
|
$('#story').replaceWith(data);
|
|
})
|
|
}
|