Skip to content

Commit db1353b

Browse files
committed
Fix initHeatMap
1 parent cbdcfb4 commit db1353b

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

public/js/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

templates/base/footer.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@
129129
<script src="{{StaticUrlPrefix}}/vendor/plugins/moment/moment.min.js" charset="utf-8"></script>
130130
<script src="{{StaticUrlPrefix}}/vendor/plugins/vue-calendar-heatmap/vue-calendar-heatmap.browser.js" charset="utf-8"></script>
131131
<script type="text/javascript">
132-
initHeatmap('user-heatmap', '{{.HeatmapUser}}');
132+
window.initHeatmap('user-heatmap', '{{.HeatmapUser}}');
133133
</script>
134134
{{end}}
135135
{{template "custom/footer" .}}

web_src/js/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2788,7 +2788,7 @@ function cancelStopwatch() {
27882788
$("#cancel_stopwatch_form").submit();
27892789
}
27902790

2791-
function initHeatmap(appElementId, heatmapUser, locale) {
2791+
window.initHeatmap = function(appElementId, heatmapUser, locale) {
27922792
const el = document.getElementById(appElementId);
27932793
if (!el) {
27942794
return;

0 commit comments

Comments
 (0)