mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-27 18:33:39 +01:00
* eMail: carry the preference regarding the move or copy of mails over to drag and drop dialog
This commit is contained in:
parent
3251329d6e
commit
3d97bb06f5
@ -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"]);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user