Skip to content

Commit

Permalink
Scroll up when using the pager
Browse files Browse the repository at this point in the history
Fixes #1205
  • Loading branch information
danidoni committed Sep 24, 2024
1 parent a92e976 commit 7894807
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/views/projects/index.js.erb
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ $("#content").html($("<%= escape_javascript(render 'projects/index') %>"))
projectPageCall();
history.pushState({isAjax: true}, null, clickedLink);
$('meta[name="csrf-token"]').attr('content','<%= form_authenticity_token %>');
$(window).scrollTop(0);

0 comments on commit 7894807

Please sign in to comment.