From: Marius Gavrilescu Date: Sun, 22 Feb 2015 12:32:57 +0000 (+0200) Subject: Prepend ticks/crosses instead of appending them X-Git-Url: http://git.ieval.ro/?p=plack-app-gruntmaster.git;a=commitdiff_plain;h=21acb1d6a80251f93acc9f98e70a664e09b29e07 Prepend ticks/crosses instead of appending them --- 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/')