hide chart area when mandatory filters are not set

using this.chart_area.hide() instead of this.chart_area.toggle(true);
This commit is contained in:
joezsweet 2017-03-29 17:25:25 +02:00 committed by Nabin Hait
parent f2cce63cfb
commit 6e7893dbea

View file

@ -412,7 +412,7 @@ frappe.views.QueryReport = Class.extend({
if(v) filters[f.df.fieldname] = v;
})
if(raise && mandatory_fields.length) {
this.chart_area.toggle(true);
this.chart_area.hide();
this.wrapper.find(".waiting-area").empty().toggle(false);
this.wrapper.find(".no-report-area").html(__("Please set filters")).toggle(true);
if(raise) {