浏览代码

[fix] [minor] chart section hidden initially

version-14
Rushabh Mehta 9 年前
父节点
当前提交
592389570a
共有 2 个文件被更改,包括 6 次插入4 次删除
  1. +5
    -3
      frappe/public/js/frappe/form/dashboard.js
  2. +1
    -1
      frappe/public/js/frappe/form/templates/form_dashboard.html

+ 5
- 3
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.stats_area.html(html).removeClass('hidden');
this.show(); this.show();
}, },
//graphs //graphs
setup_chart: function(opts) { setup_chart: function(opts) {
var me = this; var me = this;

this.chart_area.removeClass('hidden');

$.extend(opts, { $.extend(opts, {
wrapper: me.wrapper, wrapper: me.wrapper,
bind_to: ".form-chart", bind_to: ".form-chart",
@@ -265,7 +267,7 @@ frappe.ui.form.Dashboard = Class.extend({
bottom: 30 bottom: 30
} }
}); });
this.chart = new frappe.ui.Chart(opts); this.chart = new frappe.ui.Chart(opts);
if(this.chart) { if(this.chart) {
this.show(); this.show();


+ 1
- 1
frappe/public/js/frappe/form/templates/form_dashboard.html 查看文件

@@ -7,7 +7,7 @@
<div id="heatmap-{{ frm.doctype }}"></div> <div id="heatmap-{{ frm.doctype }}"></div>
<div class="text-muted small heatmap-message hidden"></div> <div class="text-muted small heatmap-message hidden"></div>
</div> </div>
<div class="form-chart form-dashboard-section"></div>
<div class="form-chart form-dashboard-section hidden"></div>
<div class="form-stats form-dashboard-section hidden"></div> <div class="form-stats form-dashboard-section hidden"></div>
<div class="form-links form-dashboard-section hidden"> <div class="form-links form-dashboard-section hidden">
<div class="transactions"></div> <div class="transactions"></div>


正在加载...
取消
保存