egroupware_official/felamimail/js/jscode/listFolder.js

58 lines
2.1 KiB
JavaScript
Raw Normal View History

2011-07-01 12:37:47 +02:00
function onCheckHandler(_nodeID)
{
xajax_doXMLHTTP('felamimail.ajaxfelamimail.updateFolderStatus',_nodeID,tree.isItemChecked(_nodeID));
}
2011-07-01 12:37:47 +02:00
function OnLoadingStart(_nodeID) {
return true;
}
2011-07-01 12:37:47 +02:00
function onNodeSelect(_nodeID)
{
xajax_doXMLHTTP("felamimail.ajaxfelamimail.getFolderInfo",_nodeID);
}
function resetACLAddView()
{
window.xajax_doXMLHTTPsync('felamimail.ajaxfelamimail.addACL', document.getElementById('accountName').value, window.xajax.getFormValues('formAddACL'),document.getElementById('recursive').checked );
2011-07-01 12:37:47 +02:00
document.getElementById('recursive').checked = false;
document.getElementById('accountName').value = '';
opener.updateACLView();
}
function updateACLView()
{
xajax_doXMLHTTP('felamimail.ajaxfelamimail.updateACLView');
}
function adaptPresetSelection(_accountid) {
// 'custom' => 'custom',
// 'lrs' => 'readable',
// 'lprs' => 'post',
// 'ilprs' => 'append',
// 'cdilprsw' => 'write',
// 'acdilprsw' => 'all'
var acl2check = '';
if (document.getElementById('acl_'+_accountid+'_a').checked) acl2check=acl2check+'a';
if (document.getElementById('acl_'+_accountid+'_c').checked) acl2check=acl2check+'c';
if (document.getElementById('acl_'+_accountid+'_d').checked) acl2check=acl2check+'d';
if (document.getElementById('acl_'+_accountid+'_i').checked) acl2check=acl2check+'i';
if (document.getElementById('acl_'+_accountid+'_l').checked) acl2check=acl2check+'l';
if (document.getElementById('acl_'+_accountid+'_p').checked) acl2check=acl2check+'p';
if (document.getElementById('acl_'+_accountid+'_r').checked) acl2check=acl2check+'r';
if (document.getElementById('acl_'+_accountid+'_s').checked) acl2check=acl2check+'s';
if (document.getElementById('acl_'+_accountid+'_w').checked) acl2check=acl2check+'w';
//alert(_accountid+': '+acl2check);
document.getElementById('predefinedFor_'+_accountid).value = 'custom';
if (acl2check=='lrs' || acl2check=='lprs' || acl2check=='ilprs' || acl2check=='cdilprsw' ||acl2check=='acdilprsw')
{
document.getElementById('predefinedFor_'+_accountid).value = acl2check;
}
return true;
}
2011-07-01 12:37:47 +02:00
function displayACLAdd(_url)
{
egw_openWindowCentered(_url,'felamiMailACL','400','150',window.outerWidth/2,window.outerHeight/2);
2011-07-01 12:37:47 +02:00
}