[FIX] Wall widget: fixed class names for comment textarea and button.
bzr revid: tde@openerp.com-20120306083419-iuy7x0casszq8ldi
This commit is contained in:
parent
bb352a172f
commit
61a41ba305
|
@ -427,7 +427,7 @@ openerp.mail = function(session) {
|
|||
var self = this;
|
||||
this._super.apply(this, arguments);
|
||||
/* events and buttons */
|
||||
this.$element.find('button.oe_mail_button_comment').bind('click', function () { self.do_comment(); });
|
||||
this.$element.find('button.oe_mail_wall_button_comment').bind('click', function () { self.do_comment(); });
|
||||
this.$element.find('button.oe_mail_wall_button_more').bind('click', function () { self.do_more(); });
|
||||
this.$element.find('p.oe_mail_wall_nomore').hide();
|
||||
/* load mail.message search view */
|
||||
|
@ -619,7 +619,7 @@ openerp.mail = function(session) {
|
|||
* Action: Posts a comment
|
||||
*/
|
||||
do_comment: function () {
|
||||
var body_text = this.$element.find('textarea:first').val();
|
||||
var body_text = this.$element.find('textarea.oe_mail_wall_action_textarea').val();
|
||||
return this.ds_users.call('message_append_note', [[this.session.uid], 'Tweet', body_text, type='comment']).then(this.init_comments());
|
||||
},
|
||||
|
||||
|
|
|
@ -7,8 +7,8 @@
|
|||
<div class="oe_mail_wall_left">
|
||||
<div class="oe_mail_wall_act">
|
||||
<div class="oe_mail_wall_tweet">
|
||||
<textarea class="oe_mail_action_textarea" onfocus="this.value='';">Enter your comment here...</textarea><br />
|
||||
<button class="oe_mail_button_comment" type="button">Post comment</button>
|
||||
<textarea class="oe_mail_wall_action_textarea" onfocus="this.value='';">Enter your comment here...</textarea><br />
|
||||
<button class="oe_mail_wall_button_comment" type="button">Post comment</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="oe_mail_wall_threads">
|
||||
|
|
Loading…
Reference in New Issue