summaryrefslogtreecommitdiff
path: root/addons/mail/static/src/js/thread.js
diff options
context:
space:
mode:
authorAaron Bohy <aab@odoo.com>2016-04-28 16:35:14 +0200
committerAaron Bohy <aab@odoo.com>2016-05-03 10:34:41 +0200
commitde6fa69774dd81eb408b46be4fdadb314d6b91af (patch)
treea2eaa8b662cb2fbdba479797e610919b1d6e6c6f /addons/mail/static/src/js/thread.js
parent2264378739520fdc8b4c3967eebd4b35fff9f7fc (diff)
[ADD] mail: commands support
Use the mention mechanism to autocomplete on commands (keyword /). A first command /help has been implemented.
Diffstat (limited to 'addons/mail/static/src/js/thread.js')
-rw-r--r--addons/mail/static/src/js/thread.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/addons/mail/static/src/js/thread.js b/addons/mail/static/src/js/thread.js
index 21a0e1bb153..446333666cc 100644
--- a/addons/mail/static/src/js/thread.js
+++ b/addons/mail/static/src/js/thread.js
@@ -41,7 +41,7 @@ var Thread = Widget.extend({
"click .o_thread_message_reply": function (event) {
this.selected_id = $(event.currentTarget).data('message-id');
this.$('.o_thread_message').removeClass('o_thread_selected_message');
- this.$('.o_thread_message[data-message-id=' + this.selected_id + ']')
+ this.$('.o_thread_message[data-message-id="' + this.selected_id + '"]')
.addClass('o_thread_selected_message');
this.trigger('select_message', this.selected_id);
event.stopPropagation();
@@ -194,7 +194,7 @@ var Thread = Widget.extend({
remove_message_and_render: function (message_id, messages, options) {
var self = this;
var done = $.Deferred();
- this.$('.o_thread_message[data-message-id=' + message_id + ']').fadeOut({
+ this.$('.o_thread_message[data-message-id="' + message_id + '"]').fadeOut({
done: function () { self.render(messages, options); done.resolve();},
duration: 200,
});
@@ -209,7 +209,7 @@ var Thread = Widget.extend({
scroll_to: function (options) {
options = options || {};
if (options.id !== undefined) {
- var $target = this.$('.o_thread_message[data-message-id=' + options.id + ']');
+ var $target = this.$('.o_thread_message[data-message-id="' + options.id + '"]');
if (options.only_if_necessary) {
var delta = $target.parent().height() - $target.height();
var offset = delta < 0 ? 0 : delta - ($target.offset().top - $target.offsetParent().offset().top);