36 lines
868 B
JavaScript
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.
|
|
});
|