Add configurable list of predefined subjects when sending a task by email
This commit is contained in:
4
assets/js/app.min.js
vendored
4
assets/js/app.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -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();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user