Files
EasySoft-ZenTaoPMS/module/doc/js/common.js
2014-07-23 09:36:03 +00:00

36 lines
847 B
JavaScript

/* Load the products of the roject. */
function loadProducts(project)
{
link = createLink('project', 'ajaxGetProducts', 'projectID=' + project);
$('#productBox').load(link, function(){$('#productBox').find('select').chosen(defaultChosenOptions)});
}
/* 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});
});