summaryrefslogtreecommitdiff
path: root/addons/mail/static/src/js/thread_widget.js
diff options
context:
space:
mode:
authorChristophe Simonis <chs@odoo.com>2018-11-12 13:06:48 +0100
committerChristophe Simonis <chs@odoo.com>2018-11-12 13:06:48 +0100
commit99d0e1b80e5b2d5eb59b96c6ce1bf246f8df2326 (patch)
tree6c53282f8a22e9b59d83762ebe057173172c5f63 /addons/mail/static/src/js/thread_widget.js
parent4d53266e236d1816e45b13aa50bcafb1bab2bc8c (diff)
parenta403155dec769418ede3c9128a887847f97a956f (diff)
[MERGE] forward port branch 12.0 up to a403155dec7
Diffstat (limited to 'addons/mail/static/src/js/thread_widget.js')
-rw-r--r--addons/mail/static/src/js/thread_widget.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/mail/static/src/js/thread_widget.js b/addons/mail/static/src/js/thread_widget.js
index aff6b27bfdd..e6da87c6dba 100644
--- a/addons/mail/static/src/js/thread_widget.js
+++ b/addons/mail/static/src/js/thread_widget.js
@@ -284,12 +284,12 @@ var ThreadWidget = Widget.extend({
/**
* Scrolls the thread to a given message
*
- * @param {integer} options.messageID the ID of the message to scroll to
+ * @param {integer} options.msgID the ID of the message to scroll to
* @param {integer} [options.duration]
* @param {boolean} [options.onlyIfNecessary]
*/
scrollToMessage: function (options) {
- var $target = this.$('.o_thread_message[data-message-id="' + options.messageID + '"]');
+ var $target = this.$('.o_thread_message[data-message-id="' + options.msgID + '"]');
if (options.onlyIfNecessary) {
var delta = $target.parent().height() - $target.height();
var offset = delta < 0 ?