egroupware/felamimail/js/jscode/listFolder.js
2008-11-24 09:40:45 +00:00

42 lines
1.3 KiB
JavaScript

var tab = new Tabs(2,'activetab','inactivetab','tab','tabcontent','','','tabpage');
function initAll()
{
tab.init();
}
function onCheckHandler(_nodeID)
{
xajax_doXMLHTTP('felamimail.ajaxfelamimail.updateFolderStatus',_nodeID,tree.isItemChecked(_nodeID));
}
function onNodeSelect(_nodeID)
{
xajax_doXMLHTTP("felamimail.ajaxfelamimail.getFolderInfo",_nodeID);
}
function resetACLAddView()
{
xajax_doXMLHTTP('felamimail.ajaxfelamimail.addACL', document.getElementById('accountName').value, xajax.getFormValues('formAddACL') );
document.getElementById('accountName').value = '';
document.getElementById('acl_l').checked = false;
document.getElementById('acl_r').checked = false;
document.getElementById('acl_s').checked = false;
document.getElementById('acl_w').checked = false;
document.getElementById('acl_i').checked = false;
document.getElementById('acl_p').checked = false;
document.getElementById('acl_c').checked = false;
document.getElementById('acl_d').checked = false;
document.getElementById('acl_a').checked = false;
opener.updateACLView();
}
function updateACLView()
{
xajax_doXMLHTTP('felamimail.ajaxfelamimail.updateACLView');
}
function displayACLAdd(_url)
{
egw_openWindowCentered(_url,'felamiMailACL','400','200',window.outerWidth/2,window.outerHeight/2);
}