Add dropdown menu to autocomplete email field from project members

This commit is contained in:
Frederic Guillot
2017-06-03 16:53:40 -04:00
parent e27148dfd8
commit 9668723af4
8 changed files with 62 additions and 5 deletions

View File

@@ -0,0 +1,12 @@
KB.onClick('.js-autocomplete-email', function (e) {
var email = KB.dom(e.target).data('email');
if (email) {
var emailField = KB.find('.js-task-mail-form input[type="email"]');
if (emailField) {
emailField.attr('value', email);
_KB.controllers['Dropdown'].close();
}
}
});