Commit 56ff3fb25fe029c9f3d21300a589223a0208bdc4
Exists in
master
and in
10 other branches
Merged
Showing
2 changed files
with
4 additions
and
2 deletions
Show diff stats
index.html
... | ... | @@ -152,7 +152,7 @@ |
152 | 152 | <div class="message"></div> |
153 | 153 | <div> |
154 | 154 | <div><label for="article_abstract">Descrição</label></div> |
155 | - <textarea id="article_abstract" class="countdown" name="article[abstract]" placeholder="Descrição" maxlength="200"></textarea> | |
155 | + <textarea id="article_abstract" class="countdown" name="article[abstract]" placeholder="Descrição" maxlength="5000"></textarea> | |
156 | 156 | </div> |
157 | 157 | <input id='content_type' name='content_type' value='ProposalsDiscussionPlugin::Story' type='hidden'> |
158 | 158 | <input type='submit' id='make-experience-button' class='make-experience-button' name='make-experience-button' value='Enviar'> | ... | ... |
js/main.js
... | ... | @@ -210,6 +210,7 @@ function loadRandomProposal(topic_id, private_token) { |
210 | 210 | $('.results-container').html(resultsTemplate(data)); |
211 | 211 | $('.results-container .loading').hide(); |
212 | 212 | $('.results-container .results-content').show(); |
213 | + $("html, body").animate({ scrollTop: $(document).height() }, "fast"); | |
213 | 214 | }); |
214 | 215 | $('.experience-proposal-container').hide(); |
215 | 216 | $('.talk-proposal-container').hide(); |
... | ... | @@ -334,6 +335,7 @@ function display_proposal_detail(){ |
334 | 335 | $('.talk-proposal-container').hide(); |
335 | 336 | |
336 | 337 | $('.body').show(); |
338 | + $("html, body").animate({ scrollTop: 0 }, "fast"); | |
337 | 339 | } |
338 | 340 | |
339 | 341 | function display_proposal_by_category(item){ |
... | ... | @@ -417,4 +419,4 @@ if("onhashchange" in window){ |
417 | 419 | window.onhashchange = locationHashChanged; |
418 | 420 | }else{ |
419 | 421 | console.log('The browser not supports the hashchange event!'); |
420 | -} | |
421 | 422 | \ No newline at end of file |
423 | +} | ... | ... |