From 3b817e0a5ed3e1029a61b55e5c9197d6cb25f30c Mon Sep 17 00:00:00 2001 From: Celant Date: Tue, 16 May 2017 14:07:36 +0100 Subject: [PATCH] Fix dailychart when using non-root location When puppetboard is being run from a directory instead of the root of the domain, the daily chart will not work as it tries to load the data from the root. This change makes it load the data from the current working URL, instead of forcing root. --- puppetboard/static/js/dailychart.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/puppetboard/static/js/dailychart.js b/puppetboard/static/js/dailychart.js index a14dca2..f68d428 100644 --- a/puppetboard/static/js/dailychart.js +++ b/puppetboard/static/js/dailychart.js @@ -1,6 +1,6 @@ jQuery(function ($) { function generateChart(el) { - var url = "/daily_reports_chart.json"; + var url = "daily_reports_chart.json"; var certname = $(el).attr('data-certname'); if (typeof certname !== typeof undefined && certname !== false) { url = url + "?certname=" + certname;