[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).
This commit is contained in:
Aaron Bohy
2018-03-13 12:51:44 +01:00
parent 7263424622
commit c761ab2c5b
+1 -1
View File
@@ -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');