From 65396521e87f7eb42b4f3fe32c54dd764eb80fba Mon Sep 17 00:00:00 2001 From: perryharlock Date: Mon, 23 Sep 2013 15:45:39 +0100 Subject: [PATCH] Add refactored back to top links --- public/js/site.js | 4 +-- view/task.html | 83 +++++++++++++++++++++++++++-------------------- 2 files changed, 50 insertions(+), 37 deletions(-) diff --git a/public/js/site.js b/public/js/site.js index 725747d..472508b 100644 --- a/public/js/site.js +++ b/public/js/site.js @@ -41,7 +41,7 @@ $(document).ready(function(){ // Toggle appearance of lists of error/warnings/notifications expandLink.click( function(){ - $(this).parent().next('ul').slideToggle('slow', function(){}); + $(this).parent().next().slideToggle('slow', function(){}); if ($(this).parent().hasClass('showing')) { $(this).html('+'); } @@ -54,7 +54,7 @@ $(document).ready(function(){ // Back to top links toTopLinks.click( function(e){ e.preventDefault(); - $(animateSection($('#top'), -55)); + $(animateSection($('#top'), -75)); }); switchStandardsList(standardSelect); diff --git a/view/task.html b/view/task.html index 6bc9b36..7a882fb 100644 --- a/view/task.html +++ b/view/task.html @@ -101,54 +101,67 @@
{{#if results}}
- Errors ( 13 ) - + Errors ( 13 ) +
+
+
    + {{#lastResult.messages}} +
  • +

    {{type}} : {{code}} {{count}}

    +

    {{message}}

    +
  • + {{/lastResult.messages}} +
+ Back to top
-
- Warnings ( 142 ) + + Warnings ( 142 ) +
+
+
    + {{#lastResult.messages}} +
  • +

    {{type}} : {{code}} {{count}}

    +

    {{message}}

    +
  • + {{/lastResult.messages}} +
+ Back to top
-
+ + Notifications ( 166 ) - +
- +
+
    + {{#lastResult.messages}} +
  • +

    {{type}} : {{code}} {{count}}

    +

    {{message}}

    +
  • + {{/lastResult.messages}} +
+ Back to top +
-
Ignored Rules +
+ + Ignored Rules +
+
+
    + {{#task.ignore}} +
  • +

    {{.}}

    +
  • + {{/task.ignore}} +
+ Back to top
-
    - {{#task.ignore}} -
  • -

    {{.}}

    -
  • - {{/task.ignore}} -
{{else}}

No results to show