Commit 7b2515ee8057c91543da658a79e78dddc1f619e9

Authored by Victor Costa
1 parent 99fa5166

Fix scroll to for all programs link

Showing 1 changed file with 3 additions and 0 deletions   Show diff stats
js/main.js
... ... @@ -279,6 +279,7 @@ define(['handlebars', 'fastclick', 'handlebars_helpers'], function(Handlebars, F
279 279 $('#content').show();
280 280 $('#article-container').hide();
281 281 $('nav').show();
  282 + $('html, body').animate({ scrollTop: $('#proposal-group').offset().top }, 'fast');
282 283 },
283 284 // fim Eduardo
284 285 display_proposal: function(proposal_id){
... ... @@ -481,6 +482,8 @@ define(['handlebars', 'fastclick', 'handlebars_helpers'], function(Handlebars, F
481 482 }else{
482 483 if(navOffset){
483 484 scrollTop = navOffset.top;
  485 + } else {
  486 + scrollTop = $('#proposal-group').offset().top;
484 487 }
485 488 }
486 489 }
... ...