Parcourir la source

Merge pull request #4411 from shreyashah115/heatmap_fix

[Fix] HeatMap on Activity page
version-14
Prateeksha Singh il y a 7 ans
committed by GitHub
Parent
révision
9046041971
Aucune clé connue n'a été trouvée dans la base pour cette signature ID de la clé GPG: 4AEE18F83AFDEB23
1 fichiers modifiés avec 3 ajouts et 2 suppressions
  1. +3
    -2
      frappe/desk/page/activity/activity.js

+ 3
- 2
frappe/desk/page/activity/activity.js Voir le fichier

@@ -180,8 +180,9 @@ frappe.activity.render_heatmap = function(page) {
method: "frappe.desk.page.activity.activity.get_heatmap_data", method: "frappe.desk.page.activity.activity.get_heatmap_data",
callback: function(r) { callback: function(r) {
if(r.message) { if(r.message) {
var heatmap = new frappe.ui.HeatMap({
parent: $(".heatmap"),
var heatmap = new Chart({
parent: ".heatmap",
type: 'heatmap',
height: 100, height: 100,
start: new Date(moment().subtract(1, 'year').toDate()), start: new Date(moment().subtract(1, 'year').toDate()),
count_label: "actions", count_label: "actions",


Chargement…
Annuler
Enregistrer