diff options
| author | Christophe Matthieu <chm@openerp.com> | 2013-01-23 11:31:02 +0100 |
|---|---|---|
| committer | Christophe Matthieu <chm@openerp.com> | 2013-01-23 11:31:02 +0100 |
| commit | b02c1eb263dadb4d4a4bf20025d0e4e448c73204 (patch) | |
| tree | 210a08421d236a26ea5cf40a18ae97d554d4597d /addons/web_kanban/static/src/js | |
| parent | d345c7b07a0d08bac01d3d5936c1f1d1516f0f46 (diff) | |
[IMP] view: no message alias
bzr revid: chm@openerp.com-20130123103102-81kafjq0l61uq8qx
Diffstat (limited to 'addons/web_kanban/static/src/js')
| -rw-r--r-- | addons/web_kanban/static/src/js/kanban.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/addons/web_kanban/static/src/js/kanban.js b/addons/web_kanban/static/src/js/kanban.js index 758c4246d87..b1ed4f16973 100644 --- a/addons/web_kanban/static/src/js/kanban.js +++ b/addons/web_kanban/static/src/js/kanban.js @@ -453,6 +453,7 @@ instance.web_kanban.KanbanView = instance.web.View.extend({ } }, no_result: function() { + var self = this; if (this.groups.group_by || !this.options.action || !this.options.action.help) { @@ -460,10 +461,10 @@ instance.web_kanban.KanbanView = instance.web.View.extend({ } this.$el.find('table:first').css("position", "absolute"); $(QWeb.render('KanbanView.nocontent', { content : this.options.action.help})).insertAfter(this.$('table:first')); - var create_nocontent = this.$buttons; this.$el.find('.oe_view_nocontent').click(function() { - create_nocontent.openerpBounce(); + self.$buttons.openerpBounce(); }); + this.insert_alias(this.$el.find('.oe_view_nocontent_content')); }, remove_no_result: function() { this.$el.find('table:first').css("position", false); |
