diff options
| author | Aaron Bohy <aab@odoo.com> | 2015-09-30 16:29:38 +0200 |
|---|---|---|
| committer | Aaron Bohy <aab@odoo.com> | 2015-10-02 15:49:10 +0200 |
| commit | 8a994917934ad56ab7cdba914ab200065607bede (patch) | |
| tree | 3aa556ce787887539c18160cc4ef59195e4b3bf1 /addons/mail/static/src/js/thread.js | |
| parent | 6bbbbc7aff8003f82cc6dd879fae2733f8366fdc (diff) | |
[IMP] mail: cache messages for each fetched domain
This is kind of a fix as well as it permits again to use filters on channels.
Diffstat (limited to 'addons/mail/static/src/js/thread.js')
| -rw-r--r-- | addons/mail/static/src/js/thread.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/addons/mail/static/src/js/thread.js b/addons/mail/static/src/js/thread.js index ffe13dbb7ae..e226ac33bb8 100644 --- a/addons/mail/static/src/js/thread.js +++ b/addons/mail/static/src/js/thread.js @@ -108,7 +108,10 @@ var Thread = Widget.extend({ scroll_to: function (target) { target = target || {}; if (target.id !== undefined) { - this.$el.scrollTo(this.$('.o_thread_message[data-message-id=' + target.id + ']')); + var $target = this.$('.o_thread_message[data-message-id=' + target.id + ']'); + if ($target.length) { + this.$el.scrollTo($target); + } } else if (target.offset !== undefined) { this.$el.scrollTop(target.offset); } else { |
