[FIX] fix a crash when editing dashboard title (web)
authorGéry Debongnie <ged@odoo.com>
Fri, 28 Nov 2014 13:34:56 +0000 (14:34 +0100)
committerGéry Debongnie <ged@odoo.com>
Fri, 28 Nov 2014 14:54:15 +0000 (15:54 +0100)
fix is very simple. no further comment required I think.

addons/board/static/src/js/dashboard.js

index eb52bfb..e5aabb7 100644 (file)
@@ -12,7 +12,7 @@ instance.web.form.DashBoard = instance.web.form.FormWidget.extend({
         'click .oe_dashboard_link_change_layout': 'on_change_layout',
         'click h2.oe_header span.oe_header_txt': function (ev) {
             if(ev.target === ev.currentTarget)
-                self.on_header_string($(ev.target).parent());
+                this.on_header_string($(ev.target).parent());
         },
         'click .oe_dashboard_column .oe_fold': 'on_fold_action',
         'click .oe_dashboard_column .oe_close': 'on_close_action',