Commits

Rufus Pollock committed 821027a

[js,bugfix][xs]: replace indexOf by $.inArray as indexOf does not exist in IE.

Comments (0)

Files changed (1)

eurostat/static/app.js

 
 
 function makeSeries(tabular, firstColumnName, secondColumnName) {
-	var idx1 = tabular.header.indexOf(firstColumnName);
-	var idx2 = tabular.header.indexOf(secondColumnName);
+	var idx1 = $.inArray(firstColumnName, tabular.header);
+	var idx2 = $.inArray(secondColumnName, tabular.header);
 	var series = [];
 	$.each(tabular.data, function(i,row) {
 		series.push([ row[idx1], row[idx2] ]);