|
|
@ -489,13 +489,22 @@ function rcube_elastic_ui()
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
rcmail.addEventListener('fileappended', function(e) { if (e.attachment.complete) attachmentmenu_append(e.item); })
|
|
|
|
var phone_confirmation = function(label) {
|
|
|
|
.addEventListener('managesieve.insertrow', function(o) { bootstrap_style(o.obj); })
|
|
|
|
if (mode == 'phone') {
|
|
|
|
.addEventListener('add-recipient', function() {
|
|
|
|
rcmail.display_message(rcmail.gettext(label), 'confirmation');
|
|
|
|
if (mode == 'phone') {
|
|
|
|
}
|
|
|
|
rcmail.display_message(rcmail.gettext('recipientsadded'), 'confirmation');
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
rcmail.addEventListener('fileappended', function(e) {
|
|
|
|
|
|
|
|
if (e.attachment.complete) {
|
|
|
|
|
|
|
|
attachmentmenu_append(e.item);
|
|
|
|
|
|
|
|
if (e.attachment.mimetype == 'text/vcard' && rcmail.commands['attach-vcard']) {
|
|
|
|
|
|
|
|
phone_confirmation('vcard_attachments.vcardattached');
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
})
|
|
|
|
|
|
|
|
.addEventListener('managesieve.insertrow', function(o) { bootstrap_style(o.obj); })
|
|
|
|
|
|
|
|
.addEventListener('add-recipient', function() { phone_confirmation('recipientsadded'); });
|
|
|
|
|
|
|
|
|
|
|
|
rcmail.init_pagejumper('.pagenav > input');
|
|
|
|
rcmail.init_pagejumper('.pagenav > input');
|
|
|
|
|
|
|
|
|
|
|
@ -511,6 +520,12 @@ function rcube_elastic_ui()
|
|
|
|
$("a.mode-html, button.attach").prop('disabled', e.active);
|
|
|
|
$("a.mode-html, button.attach").prop('disabled', e.active);
|
|
|
|
$('a.button.attach, a.button.responses')[e.active ? 'addClass' : 'removeClass']('disabled');
|
|
|
|
$('a.button.attach, a.button.responses')[e.active ? 'addClass' : 'removeClass']('disabled');
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$('.sidebar > .footer > a.button').click(function() {
|
|
|
|
|
|
|
|
if ($(this).is('.disabled')) {
|
|
|
|
|
|
|
|
rcmail.display_message(rcmail.gettext('nocontactselected'), 'warning');
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// Append contact menu to all mailto: links
|
|
|
|
// Append contact menu to all mailto: links
|
|
|
|