Add configurable list of predefined subjects when sending a task by email

This commit is contained in:
Frederic Guillot
2017-06-03 17:31:32 -04:00
parent 9668723af4
commit dd8d7ef49d
35 changed files with 110 additions and 5 deletions

File diff suppressed because one or more lines are too long

View File

@@ -10,3 +10,16 @@ KB.onClick('.js-autocomplete-email', function (e) {
}
}
});
KB.onClick('.js-autocomplete-subject', function (e) {
var subject = KB.dom(e.target).data('subject');
if (subject) {
var subjectField = KB.find('.js-task-mail-form input[name="subject"]');
if (subjectField) {
subjectField.attr('value', subject);
_KB.controllers['Dropdown'].close();
}
}
});