projects
/
odoo
/
odoo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2c497fa
)
[fix] mail: double clicking on post on the chatter
author
Christophe Matthieu
<chm@openerp.com>
Wed, 20 Mar 2013 14:41:01 +0000
(15:41 +0100)
committer
Christophe Matthieu
<chm@openerp.com>
Wed, 20 Mar 2013 14:41:01 +0000
(15:41 +0100)
bzr revid: chm@openerp.com-
20130320144101
-5mz9mbar9j5vhppl
addons/mail/static/src/js/mail.js
patch
|
blob
|
history
diff --git
a/addons/mail/static/src/js/mail.js
b/addons/mail/static/src/js/mail.js
index
4e58ca4
..
d341029
100644
(file)
--- a/
addons/mail/static/src/js/mail.js
+++ b/
addons/mail/static/src/js/mail.js
@@
-688,6
+688,10
@@
openerp.mail = function (session) {
on_message_post: function (event) {
var self = this;
+ if (self.flag_post) {
+ return;
+ }
+ self.flag_post = true;
if (this.do_check_attachment_upload() && (this.attachment_ids.length || this.$('textarea').val().match(/\S+/))) {
if (this.is_log) {
this.do_send_message_post([], this.is_log);
@@
-735,6
+739,7
@@
openerp.mail = function (session) {
thread.insert_message( message, root ? undefined : self.$el, root );
});
self.on_cancel();
+ self.flag_post = false;
});
},