From c44786804d289f768606c29f1dd48451370f0e32 Mon Sep 17 00:00:00 2001 From: Gery Debongnie Date: Thu, 26 Dec 2013 14:37:35 +0100 Subject: [PATCH] [IMP] adds an image when a graph view has no data to display (it uses the same image as an empty dashboard) (addon web_graph) bzr revid: ged@openerp.com-20131226133735-x2g7veg6d9p77y2d --- addons/web_graph/static/src/css/graph.css | 4 ---- addons/web_graph/static/src/js/graph.js | 2 -- addons/web_graph/static/src/xml/web_graph.xml | 14 +++++++------- 3 files changed, 7 insertions(+), 13 deletions(-) diff --git a/addons/web_graph/static/src/css/graph.css b/addons/web_graph/static/src/css/graph.css index 7b3e289e548..764fcdca209 100644 --- a/addons/web_graph/static/src/css/graph.css +++ b/addons/web_graph/static/src/css/graph.css @@ -4,10 +4,6 @@ text-align: right; } -.graph_main_content .oe_view_nocontent_create:before { - background-image: none !important; -} - td.graph_border { background-color: rgb(227, 227, 227); text-align: left; diff --git a/addons/web_graph/static/src/js/graph.js b/addons/web_graph/static/src/js/graph.js index 18432d9fa61..b56a2cde7a3 100644 --- a/addons/web_graph/static/src/js/graph.js +++ b/addons/web_graph/static/src/js/graph.js @@ -283,8 +283,6 @@ instance.web_graph.Graph = instance.web.Widget.extend({ } if (this.pivot.no_data) { this.$('.graph_main_content').append($(QWeb.render('graph_no_data'))); - // var msg = 'No data available. Try to remove any filter or add some data.'; - // this.table.append($('' + msg + '')); } else { var table_modes = ['pivot', 'heatmap', 'row_heatmap', 'col_heatmap']; if (_.contains(table_modes, this.mode)) { diff --git a/addons/web_graph/static/src/xml/web_graph.xml b/addons/web_graph/static/src/xml/web_graph.xml index 8c1791d80d5..262e0df4c96 100644 --- a/addons/web_graph/static/src/xml/web_graph.xml +++ b/addons/web_graph/static/src/xml/web_graph.xml @@ -53,12 +53,12 @@
-

- No data to display. -

-

- No data are available. Try to add some records, or make sure - that there is no active filter in the search bar. -

+
+

No data to display.

+

+ No data are available. Try to add some records, or make sure + that there is no active filter in the search bar. +

+