[IMP] code cleaning for get_empty_list_help

bzr revid: chm@openerp.com-20130321133053-wczo7iizsci4hkjs
This commit is contained in:
Christophe Matthieu 2013-03-21 14:30:53 +01:00
parent 5ad1ecb48f
commit dc709078ff
1 changed files with 2 additions and 2 deletions

View File

@ -459,11 +459,11 @@ instance.web_kanban.KanbanView = instance.web.View.extend({
var self = this;
if (this.groups.group_by
|| !this.options.action
|| (!this.options.action.help && !this.options.action.dynamic_help)) {
|| (!this.options.action.help && !this.options.action.get_empty_list_help)) {
return;
}
this.$el.find('table:first').css("position", "absolute");
$(QWeb.render('KanbanView.nocontent', { content : this.options.action.dynamic_help || this.options.action.help})).insertAfter(this.$('table:first'));
$(QWeb.render('KanbanView.nocontent', { content : this.options.action.get_empty_list_help || this.options.action.help})).insertAfter(this.$('table:first'));
this.$el.find('.oe_view_nocontent').click(function() {
self.$buttons.openerpBounce();
});