]> iEval git - plack-app-gruntmaster.git/blobdiff - js/90-tracker.js
Prepend ticks/crosses instead of appending them
[plack-app-gruntmaster.git] / 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.024927 seconds and 4 git commands to generate.