summaryrefslogtreecommitdiff
path: root/addons/mail/static/src/js/thread.js
diff options
context:
space:
mode:
authorChristophe Simonis <chs@odoo.com>2016-01-27 12:23:09 +0100
committerChristophe Simonis <chs@odoo.com>2016-01-27 12:23:09 +0100
commit7e44ddcda3f21c7e6401173539dc0fe93f9a7dd2 (patch)
tree322d7f2ce86ce328c27197c5c1b31c9f4a2b2c5c /addons/mail/static/src/js/thread.js
parent3c7b08c030daf84323279b3d87361214e4f1b729 (diff)
parent6f923cbdcdc9a78d1999999b3bbd917eb8b4e921 (diff)
[MERGE] forward port of branch saas-7 up to 6f923cb
Diffstat (limited to 'addons/mail/static/src/js/thread.js')
-rw-r--r--addons/mail/static/src/js/thread.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/addons/mail/static/src/js/thread.js b/addons/mail/static/src/js/thread.js
index 99b4d6ba1c2..439b1a8beb3 100644
--- a/addons/mail/static/src/js/thread.js
+++ b/addons/mail/static/src/js/thread.js
@@ -165,6 +165,9 @@ var Thread = Widget.extend({
get_scrolltop: function () {
return this.$el.scrollTop();
},
+ is_at_bottom: function () {
+ return this.el.scrollHeight - this.$el.scrollTop() - this.$el.outerHeight() < 5;
+ },
});
Thread.ORDER = ORDER;