Prepend ticks/crosses instead of appending them
authorMarius Gavrilescu <marius@ieval.ro>
Sun, 22 Feb 2015 12:32:57 +0000 (14:32 +0200)
committerMarius Gavrilescu <marius@ieval.ro>
Sun, 22 Feb 2015 12:33:06 +0000 (14:33 +0200)
js/90-tracker.js

index 16b9d8739f0e614b2f9b634cd453680f356d494f..00312bdc7012da0c8cc6a9853eca847b41427085 100644 (file)
                        $('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/')
This page took 0.011372 seconds and 4 git commands to generate.