[REF] Wall small cleaning of code
bzr revid: tde@openerp.com-20120229142331-zr42yxqy8i0xv7js
This commit is contained in:
parent
299c39f2ce
commit
4847f72044
|
@ -339,7 +339,9 @@ 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_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('div.oe_mail_wall_nomore').hide();
|
||||
/* load mail.message search view */
|
||||
var search_view_loaded = this.load_search_view(this.params.search_view_id, {}, false);
|
||||
var search_view_ready = $.when(search_view_loaded).then(function () {
|
||||
|
@ -357,7 +359,7 @@ openerp.mail = function(session) {
|
|||
/**
|
||||
* Loads the mail.message search view
|
||||
* @param {Number} view_id id of the search view to load
|
||||
* @param {??} defaults ??
|
||||
* @param {Object} defaults ??
|
||||
* @param {Boolean} hidden ??
|
||||
*/
|
||||
load_search_view: function (view_id, defaults, hidden) {
|
||||
|
@ -399,9 +401,7 @@ openerp.mail = function(session) {
|
|||
this.params.domain = [];
|
||||
this.sorted_comments = {};
|
||||
this.$element.find('div.oe_mail_wall_threads').empty();
|
||||
return this.fetch_comments(domain, context, offset, limit).then(function () {
|
||||
self.$element.find('button.oe_mail_wall_button_more').bind('click', function () { self.do_more(); });
|
||||
});
|
||||
return this.fetch_comments(domain, context, offset, limit);
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
|
@ -17,6 +17,9 @@
|
|||
<button class="oe_mail_wall_button_more" type="button">See more discussions
|
||||
</button>
|
||||
</div>
|
||||
<div class="oe_mail_wall_nomore">
|
||||
You have loaded all discussions.
|
||||
</div>
|
||||
</div>
|
||||
<div class="oe_mail_wall_right">
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue