From: Jean-Philippe Orsini Date: Tue, 18 Oct 2011 18:24:40 +0000 (+0000) Subject: fixed typo in NEWS file. X-Git-Tag: v1.3.0~121 X-Git-Url: https://git.wpitchoune.net/gitweb/?p=ppastats.git;a=commitdiff_plain;h=24f639af308805cf4c24163666723ae10871ed03 fixed typo in NEWS file. fixed JSON not available in ie8. --- diff --git a/NEWS b/NEWS index caf7683..84830b9 100644 --- a/NEWS +++ b/NEWS @@ -1,5 +1,6 @@ * v0.0.6 -** added support of ie < 9 +** added support of ie < 9. +** fixed JSON not available in ie8. * v0.0.5 ** Added information about distribution in the package page. @@ -21,7 +22,7 @@ ** Added distro/arch information in package version page. * v0.0.2 -** Generated HTML pages are now using JQuery+JQPlout instead of Google Chart. +** Generated HTML pages are now using JQuery+JQPlot instead of Google Chart. ** Added check target. * v0.0.1 diff --git a/www/js/ppastats.js b/www/js/ppastats.js index 86ae69b..d5e95cb 100644 --- a/www/js/ppastats.js +++ b/www/js/ppastats.js @@ -89,9 +89,7 @@ function ppastats_distros(distros) { function ppastats_pkg(json_url) { $(document).ready(function() { - $.get(json_url, function(str_json) { - data = JSON.parse(str_json); - + $.getJSON(json_url, function(data) { $("#ppa_owner").html(data["ppa_owner"]); $("#ppa_name").html(data["ppa_name"]); $("#pkg_name").html(data["name"]); @@ -139,9 +137,7 @@ function ppastats_ppa() { var min_date = null; var pkg_url; - $.get("index.json", function(str_json) { - data = JSON.parse(str_json); - + $.getJSON("index.json", function(data) { pkg_url = data["pkg_name"]+".html"; $("#ppa_name").html(data["ppa_owner"]+"/"+data["ppa_name"]);