From b50ced1f111525e536ea6d6f420d7450134e91d9 Mon Sep 17 00:00:00 2001 From: perryharlock Date: Wed, 25 Sep 2013 13:46:19 +0100 Subject: [PATCH] Fixed issue with js ordering of graph results --- public/js/site.js | 3 +-- view/task/index.html | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/public/js/site.js b/public/js/site.js index 03c5bba..e21a306 100644 --- a/public/js/site.js +++ b/public/js/site.js @@ -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(); }); } diff --git a/view/task/index.html b/view/task/index.html index 9754266..059d7d3 100644 --- a/view/task/index.html +++ b/view/task/index.html @@ -43,7 +43,7 @@ -