mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-08-19 04:46:42 +02:00
* Mail: deny moving folders from one mailaccount to another as we are not supporting it
This commit is contained in:
@@ -3160,9 +3160,16 @@ app.classes.mail = AppJS.extend(
|
||||
egw.debug('warn', "Move folder, but no target");
|
||||
return;
|
||||
}
|
||||
var sourceProfile = _senders[0].id.split('::');
|
||||
var targetProfile = destination.id.split('::');
|
||||
if (sourceProfile[0]!=targetProfile[0])
|
||||
{
|
||||
egw.message(this.egw.lang('Moving Folders from one Mailaccount to another is not supported'),'error');
|
||||
return;
|
||||
}
|
||||
var ftree = this.et2.getWidgetById(this.nm_index+'[foldertree]');
|
||||
var src_label = _senders[0].id.replace(/^[0-9]::/,'');
|
||||
var dest_label = destination.id.replace(/^[0-9]::/,'');
|
||||
var src_label = _senders[0].id.replace(/^[0-9]+::/,'');
|
||||
var dest_label = destination.id.replace(/^[0-9]+::/,'');
|
||||
|
||||
var callback = function (_button)
|
||||
{
|
||||
@@ -3185,8 +3192,8 @@ app.classes.mail = AppJS.extend(
|
||||
}
|
||||
}
|
||||
};
|
||||
et2_dialog.show_dialog(callback, egw.lang('Are you sure you want to move folder %1 to folder %2?',
|
||||
src_label, dest_label), 'Move folder', {},et2_dialog.BUTTONS_YES_NO, et2_dialog.WARNING_MESSAGE);
|
||||
et2_dialog.show_dialog(callback, this.egw.lang('Are you sure you want to move folder %1 to folder %2?',
|
||||
src_label, dest_label), this.egw.lang('Move folder'), {},et2_dialog.BUTTONS_YES_NO, et2_dialog.WARNING_MESSAGE);
|
||||
},
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user