Commit 03dd39e75796f1e83d3e250fe559f89f6f9b3779

Authored by Victor Costa
1 parent a87cd90d

Scroll to position when click in result and proposal detail

Showing 1 changed file with 2 additions and 1 deletions   Show diff stats
js/main.js
... ... @@ -196,6 +196,7 @@ function loadRandomProposal(topic_id, private_token) {
196 196 $('.results-container').html(resultsTemplate(data));
197 197 $('.results-container .loading').hide();
198 198 $('.results-container .results-content').show();
  199 + $("html, body").animate({ scrollTop: $(document).height() }, "fast");
199 200 });
200 201 $('.experience-proposal-container').hide();
201 202 $('.talk-proposal-container').hide();
... ... @@ -302,6 +303,6 @@ function display_proposal_detail(){
302 303 $('.talk-proposal-container').hide();
303 304  
304 305 $('.body').show();
  306 + $("html, body").animate({ scrollTop: 0 }, "fast");
305 307 event.preventDefault();
306   -
307 308 }
... ...