[FIX] fix a bug preventing hide and show method of chartview widget to function properly (addon web_graph)

bzr revid: ged@openerp.com-20131108154114-25zqn3jq5u6iuibt
This commit is contained in:
Gery Debongnie 2013-11-08 16:41:14 +01:00
parent 906d5168cc
commit 4dd5ac9924
1 changed files with 5 additions and 3 deletions

View File

@ -1,8 +1,10 @@
/*---------------------------------------------------------
* OpenERP web_graph
*---------------------------------------------------------*/
/*global openerp:true*/
/*global openerp:true $:true*/
/*global $:true*/
/*global _:true*/
'use strict';
openerp.web_graph = function (instance) {
@ -117,11 +119,11 @@ var ChartView = instance.web.Widget.extend({
measure: null,
show: function () {
this.$el.css('display', 'block');
$('.graph_chart').css('display', 'block');
},
hide: function () {
this.$el.css('display', 'none');
$('.graph_chart').css('display', 'none');
},
set_measure: function (measure) {