This commit is contained in:
Rushabh Mehta 2017-04-27 11:37:10 +05:30
parent 6f17070cdd
commit 4a181b2cf6
2 changed files with 2 additions and 2 deletions

View file

@ -333,7 +333,7 @@ frappe.ui.form.Dashboard = Class.extend({
if(!this.heatmap) {
this.heatmap = new CalHeatMap();
this.heatmap.init({
itemSelector: "#heatmap-" + this.frm.doctype,
itemSelector: "#heatmap-" + frappe.model.scrub(this.frm.doctype),
domain: "month",
subDomain: "day",
start: moment().subtract(1, 'year').add(1, 'month').toDate(),

View file

@ -4,7 +4,7 @@
<div class="progress-area hidden form-dashboard-section">
</div>
<div class="form-heatmap hidden form-dashboard-section">
<div id="heatmap-{{ frm.doctype }}"></div>
<div id="heatmap-{{ frappe.model.scrub(frm.doctype) }}"></div>
<div class="text-muted small heatmap-message hidden"></div>
</div>
<div class="form-chart form-dashboard-section hidden"></div>