From 21acb1d6a80251f93acc9f98e70a664e09b29e07 Mon Sep 17 00:00:00 2001 From: Marius Gavrilescu Date: Sun, 22 Feb 2015 14:32:57 +0200 Subject: [PATCH] Prepend ticks/crosses instead of appending them --- js/90-tracker.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/js/90-tracker.js b/js/90-tracker.js index 16b9d87..00312bd 100644 --- a/js/90-tracker.js +++ b/js/90-tracker.js @@ -45,16 +45,16 @@ $('table').find('.name').find('a').each(function() { var id = $(this).attr('href').split('?', 2)[0]; if(solved[id]) - $(this).parent().append(tick()); + $(this).parent().prepend(tick()); else if(attempted[id]) - $(this).parent().append(xmark()); + $(this).parent().prepend(xmark()); }); if(location.pathname == '/ct/') $('table').find('.name').find('a').each(function() { var id = $(this).attr('href').substr(4); if(contests[id]) - $(this).parent().append(tick()); + $(this).parent().prepend(tick()); }); if(location.pathname == '/log/') -- 2.39.2