-
- Downloads
[IMP] mail: extended composer for mailing channels
In Discuss, when the user opens a channel, the composer was the same, regardless of the channel type. This is fine for chat channels, because we expect mostly small one liners to be written. But for mailing channels, it is a problem: it is too easy to send a mail to everyone just by typing ENTER, when the user wanted to go to the next line. This commit introduces a new widget, the extended composer, to be used for those channels. It allows the edition of the subject line, and don't sent messages when the enter key was pressed.
Showing
- addons/mail/static/src/js/chat_manager.js 3 additions, 0 deletionsaddons/mail/static/src/js/chat_manager.js
- addons/mail/static/src/js/chatter.js 2 additions, 2 deletionsaddons/mail/static/src/js/chatter.js
- addons/mail/static/src/js/client_action.js 17 additions, 11 deletionsaddons/mail/static/src/js/client_action.js
- addons/mail/static/src/js/composer.js 39 additions, 3 deletionsaddons/mail/static/src/js/composer.js
- addons/mail/static/src/less/composer.less 14 additions, 2 deletionsaddons/mail/static/src/less/composer.less
- addons/mail/static/src/xml/composer.xml 23 additions, 12 deletionsaddons/mail/static/src/xml/composer.xml
Loading
Please register or sign in to comment