Files
EasySoft-ZenTaoPMS/module/project/js/browse.js
T

32 lines
946 B
JavaScript

$(function()
{
$('input[name^="involved"]').click(function()
{
var involved = $(this).is(':checked') ? 1 : 0;
$.cookie('involved', involved, {expires:config.cookieLife, path:config.webRoot});
window.location.reload();
});
$('[id="switchButton"]').click(function()
{
var projectType = $(this).attr('data-type');
$.cookie('projectType', projectType, {expires:config.cookieLife, path:config.webRoot});
window.location.reload();
});
});
/**
* Change program.
*
* @param int $programID
* @access public
* @return void
*/
function changeProgram(programID)
{
link = createLink('project', 'browse', 'programID=' + programID + '&browseType=' + browseType + '&param=' + param + '&orderBy=order_asc&recTotal=' + recTotal + '&recPerPage=' + recPerPage + '&pageID=' + pageID);
location.href = link;
}
$(".tree #program" + programID).parent('li').addClass('active');