[fix] for #3159
This commit is contained in:
parent
6f17070cdd
commit
4a181b2cf6
2 changed files with 2 additions and 2 deletions
|
|
@ -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(),
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue