Fixed issue with js ordering of graph results

This commit is contained in:
perryharlock
2013-09-25 13:46:19 +01:00
parent ea79ca2825
commit b50ced1f11
2 changed files with 2 additions and 3 deletions

View File

@@ -102,7 +102,7 @@ $(document).ready(function(){
}
function getGraphData() {
$.each($('[data-role="url-stats"]'), function() {
$($('[data-role="url-stats"]').get().reverse()).each( function() {
var el = $(this);
storeDatum(el, getXAxisLabel(el));
});
@@ -120,7 +120,6 @@ $(document).ready(function(){
data[type] = [];
}
data[type].push([label, +value]);
data[type].reverse();
});
}

View File

@@ -43,7 +43,7 @@
</div>
</div>
<div class="col-md-12 hidden">
<div class="col-md-12">
{{> results-table}}
</div>
{{/if}}