Files
EasySoft-ZenTaoPMS/module/design/js/common.ui.js
T

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);
})
}