Exchange jQuery.parseJSON() for JSON.parse()

This commit is contained in:
Critiano Lancelotti 2017-01-08 08:30:59 -02:00
parent 0972666fb2
commit 2c11b650ec

View File

@ -16,7 +16,7 @@ AJAX.registerOnload('server_status_queries.js', function () {
// Build query statistics chart
var cdata = [];
try {
$.each(jQuery.parseJSON($('#serverstatusquerieschart').text()), function (key, value) {
$.each(JSON.parse($('#serverstatusquerieschart').text()), function (key, value) {
cdata.push([key, parseInt(value, 10)]);
});
$('#serverstatusquerieschart').empty();