summaryrefslogtreecommitdiff
path: root/addons/web_graph
diff options
context:
space:
mode:
authorFabien Meghazi <fme@openerp.com>2012-06-27 17:17:33 +0200
committerFabien Meghazi <fme@openerp.com>2012-06-27 17:17:33 +0200
commit5d343c4e5e5cec19a9df501cf84e3956244b5158 (patch)
treead5dfcc81b3855c747eee8f805d4c46e94b09933 /addons/web_graph
parent4a0dd9d8c8b310dc8e22e01e8971bbbf3a984988 (diff)
[IMP] Support for @class in views definitions
bzr revid: fme@openerp.com-20120627151733-cgtfminjoqoxix11
Diffstat (limited to 'addons/web_graph')
-rw-r--r--addons/web_graph/static/src/js/graph.js1
1 files changed, 1 insertions, 0 deletions
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';