From 787a4da9f1605a41251d0ddae4fc93a3e2bc9617 Mon Sep 17 00:00:00 2001 From: Simey Lameze Date: Thu, 25 Aug 2016 14:28:03 +0800 Subject: [PATCH] MDL-55320 core: Add generaltable class to chart data table --- lib/amd/build/chart_output_htmltable.min.js | 2 +- lib/amd/src/chart_output_htmltable.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/amd/build/chart_output_htmltable.min.js b/lib/amd/build/chart_output_htmltable.min.js index a2e9030d295..d34d9051ce2 100644 --- a/lib/amd/build/chart_output_htmltable.min.js +++ b/lib/amd/build/chart_output_htmltable.min.js @@ -1 +1 @@ -define(["jquery","core/chart_output_base"],function(a,b){function c(){b.prototype.constructor.apply(this,arguments),this._build()}return c.prototype=Object.create(b.prototype),c.prototype._build=function(){this._node.empty(),this._node.append(this._makeTable())},c.prototype._makeTable=function(){var b,c,d,e=a(""),f=this._chart,g=f.getLabels(),h=g.length>0,i=f.getSeries(),j=i[0].getCount();e.addClass("chart-output-htmltable"),null!==f.getTitle()&&e.append(a(""),h&&b.append(a("
").text(f.getTitle())),b=a("
")),i.forEach(function(c){b.append(a("").text(c.getLabel()).attr("scope","col"))}),e.append(b);for(var k=0;k"),g.length>0&&b.append(a("").text(g[k]).attr("scope","row"));for(var l=0;l").text(c));e.append(b)}return e},c.prototype.update=function(){this._build()},c}); \ No newline at end of file +define(["jquery","core/chart_output_base"],function(a,b){function c(){b.prototype.constructor.apply(this,arguments),this._build()}return c.prototype=Object.create(b.prototype),c.prototype._build=function(){this._node.empty(),this._node.append(this._makeTable())},c.prototype._makeTable=function(){var b,c,d,e=a(""),f=this._chart,g=f.getLabels(),h=g.length>0,i=f.getSeries(),j=i[0].getCount();e.addClass("chart-output-htmltable generaltable"),null!==f.getTitle()&&e.append(a(""),h&&b.append(a("
").text(f.getTitle())),b=a("
")),i.forEach(function(c){b.append(a("").text(c.getLabel()).attr("scope","col"))}),e.append(b);for(var k=0;k"),g.length>0&&b.append(a("").text(g[k]).attr("scope","row"));for(var l=0;l").text(c));e.append(b)}return e},c.prototype.update=function(){this._build()},c}); \ No newline at end of file diff --git a/lib/amd/src/chart_output_htmltable.js b/lib/amd/src/chart_output_htmltable.js index 2ab02a15da5..3275e6e177d 100644 --- a/lib/amd/src/chart_output_htmltable.js +++ b/lib/amd/src/chart_output_htmltable.js @@ -67,7 +67,7 @@ define([ rowCount = series[0].getCount(); // Identify the table. - tbl.addClass('chart-output-htmltable'); + tbl.addClass('chart-output-htmltable generaltable'); // Set the caption. if (c.getTitle() !== null) {