[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:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user