diff --git a/frappe/public/js/frappe/form/dashboard.js b/frappe/public/js/frappe/form/dashboard.js index 1b02060b77..74948f0298 100644 --- a/frappe/public/js/frappe/form/dashboard.js +++ b/frappe/public/js/frappe/form/dashboard.js @@ -252,11 +252,13 @@ frappe.ui.form.Dashboard = Class.extend({ this.stats_area.html(html).removeClass('hidden'); this.show(); }, - + //graphs setup_chart: function(opts) { var me = this; - + + this.chart_area.removeClass('hidden'); + $.extend(opts, { wrapper: me.wrapper, bind_to: ".form-chart", @@ -265,7 +267,7 @@ frappe.ui.form.Dashboard = Class.extend({ bottom: 30 } }); - + this.chart = new frappe.ui.Chart(opts); if(this.chart) { this.show(); diff --git a/frappe/public/js/frappe/form/templates/form_dashboard.html b/frappe/public/js/frappe/form/templates/form_dashboard.html index 14ba0f7c77..0ec3f35f7f 100644 --- a/frappe/public/js/frappe/form/templates/form_dashboard.html +++ b/frappe/public/js/frappe/form/templates/form_dashboard.html @@ -7,7 +7,7 @@
- +