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:
6671d25
)
[IMP] ThreadView: image left of post comment area is not refreshed in each set_value...
author
Thibault Delavallée
<tde@openerp.com>
Wed, 22 Feb 2012 14:58:00 +0000
(15:58 +0100)
committer
Thibault Delavallée
<tde@openerp.com>
Wed, 22 Feb 2012 14:58:00 +0000
(15:58 +0100)
bzr revid: tde@openerp.com-
20120222145800
-rfqkznqxcf3a22ok
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
fe29fd8
..
2ef72d0
100644
(file)
--- a/
addons/mail/static/src/js/mail.js
+++ b/
addons/mail/static/src/js/mail.js
@@
-16,6
+16,7
@@
openerp.mail = function(session) {
init: function() {
this.is_sub = 0;
this.see_sub = 1;
+ this.user_init = 0;
this._super.apply(this, arguments);
/* DataSets */
this.ds = new session.web.DataSet(this, this.view.model);
@@
-53,7
+54,10
@@
openerp.mail = function(session) {
});
console.log(this);
/* fetch comments and subscribers */
- this.fetch_current_user();
+ if (this.user_init == 0) {
+ this.fetch_current_user();
+ this.user_init = 1;
+ }
this.fetch_subscribers();
return this.fetch_comments();
},