diff options
| author | Aaron Bohy <aab@odoo.com> | 2015-09-01 10:54:15 +0200 |
|---|---|---|
| committer | Aaron Bohy <aab@odoo.com> | 2015-09-01 21:04:34 +0200 |
| commit | c2f2a518313727b090831da30a20add775c6970c (patch) | |
| tree | b6e3e351a0acfa3b5d6729177192dfe3162809eb /addons/mail/static/src/xml/mail_thread.xml | |
| parent | d3df3268a98f2c19ca1897196102b50d7821f73f (diff) | |
[IMP] mail: load more messages: scrolling
- In the chat, when loading more messages, automatically scroll to the previous
oldest message instead of staying at the top;
- In the chat, don't use the event 'scrollTop < 50' to load more messages as
it won't work on mobile (all the webclient is scrolling, so the client action's
scrollTop will always be 0);
- Generalize the way to load more messages between chat and chatter by moving
the logic to the MailThreadMixin and creating a common template;
- Improve the style of this 'load more messages' button
Diffstat (limited to 'addons/mail/static/src/xml/mail_thread.xml')
| -rw-r--r-- | addons/mail/static/src/xml/mail_thread.xml | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/addons/mail/static/src/xml/mail_thread.xml b/addons/mail/static/src/xml/mail_thread.xml index f4aad0754b1..e650dd323fc 100644 --- a/addons/mail/static/src/xml/mail_thread.xml +++ b/addons/mail/static/src/xml/mail_thread.xml @@ -158,6 +158,12 @@ </t> </t> + <t t-name="mail.Thread.load_more"> + <div t-if="!widget.all_messages_loaded" class="o_mail_thread_show_more"> + <button class="btn btn-sm btn-link">-------- Show more messages --------</button> + </div> + </t> + <t t-name="mail.Thread.tracking_message"> <div> <ul class="o_mail_thread_message_tracking"> |
