diff options
author | Bot <bot@myigel.name> | 2018-08-11 22:16:57 +0200 |
---|---|---|
committer | Igor Scheller <igor.scheller@igorshp.de> | 2018-08-11 22:16:57 +0200 |
commit | 28349b69a8e591ddd2472bd53a3029de96444696 (patch) | |
tree | 77e5575fb777768718546a398fa797c041117970 /includes/helper | |
parent | 3d245660c53da4b4da832c3139329e091dbfac3d (diff) |
Changed JS to use single quotes instead of double quotes
Diffstat (limited to 'includes/helper')
-rw-r--r-- | includes/helper/graph_helper.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/helper/graph_helper.php b/includes/helper/graph_helper.php index 12c7df6c..f49ab635 100644 --- a/includes/helper/graph_helper.php +++ b/includes/helper/graph_helper.php @@ -33,7 +33,7 @@ function bargraph($dom_id, $key, $row_names, $colors, $data) return '<canvas id="' . $dom_id . '" style="width: 100%; height: 300px;"></canvas> <script type="text/javascript"> $(function(){ - var ctx = $("#' . $dom_id . '").get(0).getContext("2d"); + var ctx = $(\'#' . $dom_id . '\').get(0).getContext(\'2d\'); var chart = new Chart(ctx).Bar(' . json_encode([ 'labels' => $labels, 'datasets' => $datasets |