diff options
| author | Gery Debongnie <ged@openerp.com> | 2014-04-22 16:59:55 +0200 |
|---|---|---|
| committer | Gery Debongnie <ged@openerp.com> | 2014-04-22 16:59:55 +0200 |
| commit | c3c56bb2b1a1f3a8000c9a974e403b11f83ed060 (patch) | |
| tree | d86572c5e33f237e2f857c9470f5ea8c6bb971f7 /addons/web_graph/static/src/js | |
| parent | 00cb732ea03ed398a31ca0b8a6b8fe3a6749d245 (diff) | |
[FIX] disable export to xls button in graph view when there are no data to export, this prevent a crash (addon web)
bzr revid: ged@openerp.com-20140422145955-vfls1hxktnq8m67b
Diffstat (limited to 'addons/web_graph/static/src/js')
| -rw-r--r-- | addons/web_graph/static/src/js/graph_widget.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/addons/web_graph/static/src/js/graph_widget.js b/addons/web_graph/static/src/js/graph_widget.js index 7666b345700..5222e505253 100644 --- a/addons/web_graph/static/src/js/graph_widget.js +++ b/addons/web_graph/static/src/js/graph_widget.js @@ -502,6 +502,7 @@ openerp.web_graph.Graph = openerp.web.Widget.extend({ this.$('.graph_main_content div').remove(); this.table.empty(); this.table.toggleClass('heatmap', this.heatmap_mode !== 'none'); + this.$('.graph_options_selection label').last().toggleClass('disabled', this.pivot.no_data); this.width = this.$el.width(); this.height = Math.min(Math.max(document.documentElement.clientHeight - 116 - 60, 250), Math.round(0.8*this.$el.width())); |
