Merge remote-tracking branch 'origin/pull/12823'
This commit is contained in:
commit
9b4642af62
@ -16,9 +16,10 @@ AJAX.registerOnload('server_status_queries.js', function () {
|
||||
// Build query statistics chart
|
||||
var cdata = [];
|
||||
try {
|
||||
$.each(JSON.parse($('#serverstatusquerieschart_data').text()), function (key, value) {
|
||||
$.each(JSON.parse($('#serverstatusquerieschart').text()), function (key, value) {
|
||||
cdata.push([key, parseInt(value, 10)]);
|
||||
});
|
||||
$('#serverstatusquerieschart').empty();
|
||||
$('#serverstatusquerieschart').data(
|
||||
'queryPieChart',
|
||||
PMA_createProfilingChart(
|
||||
|
||||
@ -134,8 +134,7 @@ function PMA_getHtmlForServerStatusQueriesDetails($ServerStatusData)
|
||||
$retval .= '</tbody>';
|
||||
$retval .= '</table>';
|
||||
|
||||
$retval .= '<div id="serverstatusquerieschart"></div>';
|
||||
$retval .= '<div id="serverstatusquerieschart_data" style="display:none;">';
|
||||
$retval .= '<div id="serverstatusquerieschart">';
|
||||
if ($other_sum > 0) {
|
||||
$chart_json[__('Other')] = $other_sum;
|
||||
}
|
||||
|
||||
@ -219,12 +219,9 @@ class PMA_ServerStatusQueries_Test extends PHPUnit_Framework_TestCase
|
||||
|
||||
//validate 3:serverstatusquerieschart
|
||||
$this->assertContains(
|
||||
'<div id="serverstatusquerieschart"></div>',
|
||||
$html
|
||||
);
|
||||
$this->assertContains(
|
||||
'<div id="serverstatusquerieschart_data"',
|
||||
'<div id="serverstatusquerieschart">',
|
||||
$html
|
||||
);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user