Skip to content

Commit

Permalink
Fixed issue #13941: graphs do not show in simple or complex statistics
Browse files Browse the repository at this point in the history
  • Loading branch information
lacrioque committed Aug 7, 2018
1 parent 1b5890a commit 4017897
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions assets/scripts/admin/statistics.js
@@ -1,6 +1,3 @@
var LS = LS || {
onDocumentReady: {}
};

function toggleSection(chevron, section) {
section.toggle();
Expand Down Expand Up @@ -164,7 +161,7 @@ function init_chart_js_graph_with_datas($type, $qid) {
);
}

LS.onDocumentReady.Statistics2 = function () {
LS.Statistics2 = function () {

if ($('#completionstateSimpleStat').length > 0) {
$actionUrl = $('#completionstateSimpleStat').data('grid-display-url');
Expand Down Expand Up @@ -758,7 +755,7 @@ var exportImages = function () {
};

$(document).on('ready pjax:scriptcomplete', function () {
LS.onDocumentReady.Statistics2();
LS.Statistics2();
$('body').addClass('onStatistics');
var exportImagesButton = $('#statisticsExportImages');
exportImagesButton.on('click', exportImages);
Expand Down Expand Up @@ -793,4 +790,4 @@ $(document).on('ready pjax:scriptcomplete', function () {
});
});

$(document).on('triggerReady', LS.onDocumentReady.Statistics2);
$(document).on('triggerReady', LS.Statistics2);

0 comments on commit 4017897

Please sign in to comment.