-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathforward.js
More file actions
16 lines (16 loc) · 733 Bytes
/
forward.js
File metadata and controls
16 lines (16 loc) · 733 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
if (window.rcmail) {
rcmail.addEventListener('init', function(evt) {
var tab = $('<span>').attr('id', 'settingstabpluginforward').addClass('tablink filter');
var button = $('<a>').attr('href', rcmail.env.comm_path+'&_action=plugin.forward').html(rcmail.gettext('forward', 'forward')).appendTo(tab);
rcmail.add_element(tab, 'tabs');
rcmail.register_command('plugin.forward-save', function() {
var input_new_forward = rcube_find_object('_new_forward');
if (input_new_forward && input_new_forward.value=='') {
alert(rcmail.gettext('noaddressfilled', 'forward'));
input_new_forward.focus();
} else {
rcmail.gui_objects.forwardform.submit();
}
}, true);
})
}