summaryrefslogtreecommitdiff
path: root/addons/mail/static/src/js/thread.js
diff options
context:
space:
mode:
authorAaron Bohy <aab@odoo.com>2018-03-13 10:59:55 +0100
committerAaron Bohy <aab@odoo.com>2018-03-13 12:51:44 +0100
commitc761ab2c5b3a789077dbc5bc0688b96edaf30a06 (patch)
treedbee4b02ccbc3fc59b67d844333b21e00c5564ae /addons/mail/static/src/js/thread.js
parent7263424622411fc60086cd1471c65d394bd10985 (diff)
[FIX] mail: redirect: prevent double-clicks
This rev. increases the wait interval of the redirect handler called when a document is clicked in a mail thread (e.g. in the 'Inbox' in Discuss). This increases the protection against double-clicks (preventing the document from being opened twice, thus making twice the required RPCs, and from appearing twice in the breadcrumbs). A more robust solution (at the ActionManager level) will be developed for saas-11.2 (where the ActionManager has been refactored and is testable).
Diffstat (limited to 'addons/mail/static/src/js/thread.js')
-rw-r--r--addons/mail/static/src/js/thread.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/mail/static/src/js/thread.js b/addons/mail/static/src/js/thread.js
index f63c7073af9..fcb1dda324f 100644
--- a/addons/mail/static/src/js/thread.js
+++ b/addons/mail/static/src/js/thread.js
@@ -229,7 +229,7 @@ var Thread = Widget.extend({
} else {
this.trigger('redirect', options.model, options.id);
}
- }, 200, true),
+ }, 500, true),
on_click_show_more: function () {
this.trigger('load_more_messages');