Files
EasySoft-ZenTaoPMS/module/doc/js/common.js
2013-01-17 00:48:49 +00:00

36 lines
868 B
JavaScript

/* Load the products of the roject. */
function loadProducts(project)
{
link = createLink('project', 'ajaxGetProducts', 'projectID=' + project);
$('#productBox').load(link);
}
/* Set doc type. */
function setType(type)
{
if(type == 'url')
{
$('#urlBox').show();
$('#fileBox').hide();
$('#contentBox').hide();
}
else if(type == 'text')
{
$('#urlBox').hide();
$('#fileBox').hide();
$('#contentBox').show();
}
else
{
$('#urlBox').hide();
$('#fileBox').show();
$('#contentBox').hide();
}
}
$(document).ready(function()
{
$("#submenucreate").colorbox({width:500, height:200, iframe:true, transition:'none'}); // The create lib link.
$("#submenuedit").colorbox({width:500, height:200, iframe:true, transition:'none'}); // The edit lib link.
});