Commit 11f8476c23e6371ef42aa2bc9c82f6e6073105c8
Exists in
master
and in
10 other branches
Merge branch 'master' of https://gitlab.com/participa/proposal-app
Showing
4 changed files
with
10 additions
and
8 deletions
Show diff stats
index.html
@@ -24,7 +24,7 @@ | @@ -24,7 +24,7 @@ | ||
24 | </header> | 24 | </header> |
25 | 25 | ||
26 | <div id="content"> | 26 | <div id="content"> |
27 | - <p>{{article.body}}</p> | 27 | + {{{article.body}}} |
28 | </div> | 28 | </div> |
29 | 29 | ||
30 | <nav> | 30 | <nav> |
@@ -143,7 +143,7 @@ | @@ -143,7 +143,7 @@ | ||
143 | <div class="message"></div> | 143 | <div class="message"></div> |
144 | <div> | 144 | <div> |
145 | <div><label for="article_abstract">Descrição</label></div> | 145 | <div><label for="article_abstract">Descrição</label></div> |
146 | - <textarea id="article_abstract" class="countdown" name="article[abstract]" placeholder="Descrição" maxlength="200"></textarea> | 146 | + <textarea id="article_abstract" class="countdown" name="article[abstract]" placeholder="Descrição" maxlength="5000"></textarea> |
147 | </div> | 147 | </div> |
148 | <input id='content_type' name='content_type' value='ProposalsDiscussionPlugin::Story' type='hidden'> | 148 | <input id='content_type' name='content_type' value='ProposalsDiscussionPlugin::Story' type='hidden'> |
149 | <input type='submit' id='make-experience-button' class='make-experience-button' name='make-experience-button' value='Enviar'> | 149 | <input type='submit' id='make-experience-button' class='make-experience-button' name='make-experience-button' value='Enviar'> |
@@ -173,6 +173,7 @@ | @@ -173,6 +173,7 @@ | ||
173 | </div> | 173 | </div> |
174 | </div> | 174 | </div> |
175 | </div> | 175 | </div> |
176 | + <div class="clearfix"></div> | ||
176 | </div> | 177 | </div> |
177 | {{/each}} | 178 | {{/each}} |
178 | </script> | 179 | </script> |
js/main.js
@@ -196,6 +196,7 @@ function loadRandomProposal(topic_id, private_token) { | @@ -196,6 +196,7 @@ function loadRandomProposal(topic_id, private_token) { | ||
196 | $('.results-container').html(resultsTemplate(data)); | 196 | $('.results-container').html(resultsTemplate(data)); |
197 | $('.results-container .loading').hide(); | 197 | $('.results-container .loading').hide(); |
198 | $('.results-container .results-content').show(); | 198 | $('.results-container .results-content').show(); |
199 | + $("html, body").animate({ scrollTop: $(document).height() }, "fast"); | ||
199 | }); | 200 | }); |
200 | $('.experience-proposal-container').hide(); | 201 | $('.experience-proposal-container').hide(); |
201 | $('.talk-proposal-container').hide(); | 202 | $('.talk-proposal-container').hide(); |
@@ -302,6 +303,6 @@ function display_proposal_detail(){ | @@ -302,6 +303,6 @@ function display_proposal_detail(){ | ||
302 | $('.talk-proposal-container').hide(); | 303 | $('.talk-proposal-container').hide(); |
303 | 304 | ||
304 | $('.body').show(); | 305 | $('.body').show(); |
306 | + $("html, body").animate({ scrollTop: 0 }, "fast"); | ||
305 | event.preventDefault(); | 307 | event.preventDefault(); |
306 | - | ||
307 | } | 308 | } |
sass/_proposal_detail.scss
@@ -379,8 +379,8 @@ | @@ -379,8 +379,8 @@ | ||
379 | .experience-proposal-container{ | 379 | .experience-proposal-container{ |
380 | float: left; | 380 | float: left; |
381 | width: 50%; | 381 | width: 50%; |
382 | - height: $container-height; | ||
383 | - min-height: $container-height; | 382 | + // height: $container-height; |
383 | + // min-height: $container-height; | ||
384 | position: relative; | 384 | position: relative; |
385 | text-align: center; | 385 | text-align: center; |
386 | .experience-proposal{ | 386 | .experience-proposal{ |
@@ -413,8 +413,8 @@ | @@ -413,8 +413,8 @@ | ||
413 | .talk-proposal-container{ | 413 | .talk-proposal-container{ |
414 | width: 50%; | 414 | width: 50%; |
415 | float: left; | 415 | float: left; |
416 | - height: $container-height; | ||
417 | - min-height: $container-height; | 416 | + // height: $container-height; |
417 | + // min-height: $container-height; | ||
418 | position: relative; | 418 | position: relative; |
419 | text-align: center; | 419 | text-align: center; |
420 | .talk-proposal { | 420 | .talk-proposal { |