From 5d343c4e5e5cec19a9df501cf84e3956244b5158 Mon Sep 17 00:00:00 2001 From: Fabien Meghazi Date: Wed, 27 Jun 2012 17:17:33 +0200 Subject: [IMP] Support for @class in views definitions bzr revid: fme@openerp.com-20120627151733-cgtfminjoqoxix11 --- addons/web_graph/static/src/js/graph.js | 1 + 1 file changed, 1 insertion(+) (limited to 'addons/web_graph/static') diff --git a/addons/web_graph/static/src/js/graph.js b/addons/web_graph/static/src/js/graph.js index 52162285f27..2dfe0202cfc 100644 --- a/addons/web_graph/static/src/js/graph.js +++ b/addons/web_graph/static/src/js/graph.js @@ -53,6 +53,7 @@ instance.web_graph.GraphView = instance.web.View.extend({ // TODO: move to load_view and document var self = this; this.fields_view = fields_view_get; + this.$element.addClass(this.fields_view.arch.attrs['class']); this.mode = this.fields_view.arch.attrs.type || 'bar'; this.orientation = this.fields_view.arch.attrs.orientation == 'horizontal'; -- cgit v1.2.3