Files
EasySoft-ZenTaoPMS/module/doc/js/common.js
T
Catouse 37fa3e65bd * updated method 'setModal' in 'my.full.js'.
* ajusted views of module 'doc'.
2014-04-01 16:43:18 +08:00

36 lines
773 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").modalTrigger({type: 'iframe', width: 500});
$("#submenuedit").modalTrigger({type: 'iframe', width: 500});
});