Commit 4996e27bb181431ff9d6e2a80536631ecfff93ef
1 parent
3e6ce5b9
Exists in
master
and in
11 other branches
Fix ellipsis for abstract
Showing
2 changed files
with
2 additions
and
2 deletions
Show diff stats
index.html
... | ... | @@ -110,7 +110,7 @@ |
110 | 110 | <div class='title'> Apoie outras propostas</div> |
111 | 111 | <div class='subtitle'> Propostas da sociedade</div> |
112 | 112 | <div class='author'>{{author.name}}</div> |
113 | - <div class='abstract'>{{abstract}}</div> | |
113 | + <div class='abstract'><p>{{abstract}}</p></div> | |
114 | 114 | <div class="vote-actions"> |
115 | 115 | <a href="#" class="like" data-vote-value="1">Gostei</a> |
116 | 116 | <a href="#" class="like" data-vote-value="-1">Não Gostei</a> | ... | ... |
js/main.js
... | ... | @@ -59,7 +59,6 @@ $.getJSON(noosferoAPI) |
59 | 59 | $('#proposal-group').hide(); |
60 | 60 | $('nav').hide(); |
61 | 61 | $('#content').hide(); |
62 | - $(".abstract").dotdotdot(); | |
63 | 62 | $('.proposal-detail').hide(); |
64 | 63 | $('#' + item).show(); |
65 | 64 | |
... | ... | @@ -110,6 +109,7 @@ function loadRandomProposal(topic_id, private_token) { |
110 | 109 | if(data.articles.length == 0) return; |
111 | 110 | var article = data.articles[0]; |
112 | 111 | $('.support-proposal-container').html(supportProposalTemplate(article)); |
112 | + $(".abstract").dotdotdot(); | |
113 | 113 | $(document.body).off('click', '.vote-actions .like'); |
114 | 114 | $(document.body).on('click', '.vote-actions .like', function(e) { |
115 | 115 | $.ajax({ | ... | ... |