From f0b781611d13784ca4c6ffca22c12dc9c843874c Mon Sep 17 00:00:00 2001 From: Georgi Demirchev Date: Sun, 6 Oct 2013 13:33:45 +0300 Subject: [PATCH] Quota/limit graphs now work in IE IE has only parital support for html5 dataset. Here proposed solution accesses the custom attributes via JQuery. Fixes Bug #1195500 Change-Id: Ie1832db4671f5907d0cb0da50b0bbbd597f1b16d --- horizon/static/horizon/js/horizon.d3piechart.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/horizon/static/horizon/js/horizon.d3piechart.js b/horizon/static/horizon/js/horizon.d3piechart.js index 816bfd9f43..0d8e0da331 100644 --- a/horizon/static/horizon/js/horizon.d3piechart.js +++ b/horizon/static/horizon/js/horizon.d3piechart.js @@ -28,7 +28,7 @@ horizon.d3_pie_chart = { self.chart = d3.selectAll(".d3_pie_chart"); for (var i = 0; i < pie_chart_data.length; i++) { - used = parseInt(pie_chart_data[i].dataset.used); + used = parseInt($(pie_chart_data[i]).data("used")); self.data = [{"percentage":used}, {"percentage":100 - used}]; self.pieChart(i); }