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
This commit is contained in:
Georgi Demirchev 2013-10-06 13:33:45 +03:00
parent 9c08d883ea
commit f0b781611d

View File

@ -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);
}