Files
EasySoft-ZenTaoPMS/module/story/js/common.js
T
2021-04-07 14:05:37 +08:00

23 lines
840 B
JavaScript

$(function()
{
if(typeof(resetActive) != 'undefined') return false;
if(typeof(storyType) == 'undefined') storyType = '';
if(typeof(rawModule) == 'undefined') rawModule = 'product';
if(typeof(app) == 'undefined') app = '';
if(typeof(execution) != 'undefined') rawModule = 'projectstory';
if(['project', 'projectstory'].indexOf(rawModule) === -1 && app != 'qa')
{
if(app != 'my') $('#navbar .nav li').removeClass('active');
$("#navbar .nav li[data-id=" + storyType + ']').addClass('active');
$('#subNavbar li[data-id="' + storyType + '"]').addClass('active');
}
})
function getStatus(method, params)
{
$.get(createLink('story', 'ajaxGetStatus', "method=" + method + '&params=' + params), function(status)
{
$('form #status').val(status).change();
});
}