Add the possibility to send tasks and comments to multiple recipients

This commit is contained in:
Frederic Guillot
2017-11-17 14:46:23 -08:00
parent 3b786e05e0
commit 2a313eb971
44 changed files with 84 additions and 85 deletions

File diff suppressed because one or more lines are too long

View File

@@ -1,9 +1,15 @@
KB.onClick('.js-autocomplete-email', function (e) {
var email = KB.dom(e.target).data('email');
var emailField = KB.find('.js-mail-form input[type="email"]');
var email = e.target.dataset.email;
var emailField = document.querySelector('.js-mail-form input[name="emails"]');
if (email && emailField) {
emailField.build().value = email;
if (!email || !emailField) {
return;
}
if (emailField.value !== '') {
emailField.value += ', ' + email;
} else {
emailField.value = email;
}
_KB.controllers.Dropdown.close();