Parcourir la source

[fix] [minor] chart section hidden initially

version-14
Rushabh Mehta il y a 9 ans
Parent
révision
592389570a
2 fichiers modifiés avec 6 ajouts et 4 suppressions
  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 Voir le fichier

@@ -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();


+ 1
- 1
frappe/public/js/frappe/form/templates/form_dashboard.html Voir le fichier

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


Chargement…
Annuler
Enregistrer