Fixed rendering of chart of columns with HTML inside

Signed-off-by: Michal Čihař <michal@cihar.com>
This commit is contained in:
Michal Čihař 2016-06-22 13:07:32 +02:00
parent 9b6f64b8b9
commit b974b56781

View File

@ -201,7 +201,7 @@ function drawChart() {
var columnNames = [];
$('select[name="chartXAxis"] option').each(function() {
columnNames.push($(this).text());
columnNames.push(escapeHtml($(this).text()));
});
try {
currentChart = PMA_queryChart(chart_data, columnNames, currentSettings);
@ -223,7 +223,7 @@ function extractDate(dateString) {
var matches, match;
var dateTimeRegExp = /[0-9]{4}-[0-9]{2}-[0-9]{2} [0-9]{2}:[0-9]{2}:[0-9]{2}/;
var dateRegExp = /[0-9]{4}-[0-9]{2}-[0-9]{2}/;
matches = dateTimeRegExp.exec(dateString);
if (matches != null && matches.length > 0) {
match = matches[0];