You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
1.1 KiB
36 lines
1.1 KiB
openerp.mail_wall_menu = function(instance){
|
|
var QWeb = instance.web.qweb;
|
|
var _t = instance.web._t;
|
|
|
|
instance.mail.Widget.include({
|
|
start: function(){
|
|
if (this.action.params.disable_thread){
|
|
$('.oe_view_manager_body').addClass('dashboard_only');
|
|
var msnry = new Masonry( '.oe_mail_wall_aside', {
|
|
// options
|
|
columnWidth: 290,
|
|
itemSelector: '.oe_goal',
|
|
transitionDuration: 0
|
|
});
|
|
var update = -10;
|
|
this.msnry_interval = setInterval(function(){
|
|
update++;
|
|
if (update > 0 && update % 5 != 0)
|
|
return;
|
|
if (update > 0)
|
|
update = 0;
|
|
msnry.reloadItems();
|
|
msnry.layout();
|
|
}, 1000);
|
|
|
|
|
|
return;
|
|
}
|
|
this._super.apply(this, arguments);
|
|
},
|
|
destroy: function(){
|
|
clearInterval(this.msnry_interval);
|
|
this._super.apply(this, arguments);
|
|
}
|
|
});
|
|
};
|