23 lines
840 B
JavaScript
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 + '¶ms=' + params), function(status)
|
|
{
|
|
$('form #status').val(status).change();
|
|
});
|
|
}
|