* eMail: carry the preference regarding the move or copy of mails over to drag and drop dialog

This commit is contained in:
Klaus Leithoff 2011-07-21 11:01:55 +00:00
parent 3251329d6e
commit 3d97bb06f5

View File

@ -1316,14 +1316,26 @@ function felamimail_transform_foldertree() {
// Go over the folder list
if (typeof felamimail_folders != 'undefined' && felamimail_folders.length > 0)
{
if (typeof prefAskForMove == 'undefined') prefAskForMove = egw_appWindow('felamimail').prefAskForMove;
for (var i = 0; i < felamimail_folders.length; i++) {
var folderName = felamimail_folders[i];
// Add a new action object to the object manager
var obj = treeObj.addObject(folderName,
new dhtmlxtreeItemAOI(tree, folderName));
if (prefAskForMove == 2)
{
obj.updateActionLinks(["drop_move_mail", "drop_copy_mail", "drop_cancel"]);
}
else if ( prefAskForMove == 1 )
{
obj.updateActionLinks(["drop_move_mail", "drop_cancel"]);
}
else
{
obj.updateActionLinks(["drop_move_mail"]);
}
}
}
}