|
|
@ -1,8 +1,12 @@
|
|
|
|
'use strict';
|
|
|
|
'use strict';
|
|
|
|
|
|
|
|
|
|
|
|
define('persona/quickreply', [
|
|
|
|
define('persona/quickreply', [
|
|
|
|
'components', 'composer/autocomplete', 'api', 'alerts', 'uploadHelpers',
|
|
|
|
'components', 'composer/autocomplete', 'api',
|
|
|
|
], function (components, autocomplete, api, alerts, uploadHelpers) {
|
|
|
|
'alerts', 'uploadHelpers', 'mousetrap',
|
|
|
|
|
|
|
|
], function (
|
|
|
|
|
|
|
|
components, autocomplete, api,
|
|
|
|
|
|
|
|
alerts, uploadHelpers, mousetrap
|
|
|
|
|
|
|
|
) {
|
|
|
|
var QuickReply = {};
|
|
|
|
var QuickReply = {};
|
|
|
|
|
|
|
|
|
|
|
|
QuickReply.init = function () {
|
|
|
|
QuickReply.init = function () {
|
|
|
@ -27,6 +31,11 @@ define('persona/quickreply', [
|
|
|
|
// data.element.textcomplete(data.strategies, data.options);
|
|
|
|
// data.element.textcomplete(data.strategies, data.options);
|
|
|
|
// $('.textcomplete-wrapper').css('height', '100%').find('textarea').css('height', '100%');
|
|
|
|
// $('.textcomplete-wrapper').css('height', '100%').find('textarea').css('height', '100%');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
mousetrap.bind('ctrl+return', (e) => {
|
|
|
|
|
|
|
|
if (e.target === element.get(0)) {
|
|
|
|
|
|
|
|
components.get('topic/quickreply/button').get(0).click();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
uploadHelpers.init({
|
|
|
|
uploadHelpers.init({
|
|
|
|
dragDropAreaEl: $('[component="topic/quickreply/container"] .quickreply-message'),
|
|
|
|
dragDropAreaEl: $('[component="topic/quickreply/container"] .quickreply-message'),
|
|
|
|