Commit 2cfc013bdbb475c894d188efeb3164ac55836f13

Authored by Leandro Santos
1 parent f2261230

adding hide and show body

Showing 2 changed files with 8 additions and 1 deletions   Show diff stats
index.html
... ... @@ -79,7 +79,9 @@
79 79 <img src="{{../host}}{{image.url}}"/>
80 80 </div>
81 81 <div class='title'>{{title}}</div>
82   - <div class='body'>{{body}}</div>
  82 + <div class='abstract'>{{abstract}}</div>
  83 + <div class='show_body'><a href='#'>Conheça o Programa</a></div>
  84 + <div class='body hide'>{{body}}</div>
83 85 <div class='make-proposal-container'>
84 86 <div class='make-proposal'>
85 87 <div class='container-title'>Faça Uma Proposta</div>
... ...
js/main.js
... ... @@ -100,6 +100,11 @@ $.getJSON(noosferoAPI)
100 100 loginCallback(logged_in);
101 101 event.preventDefault();
102 102 });
  103 + $( '.show_body a' ).click(function(event){
  104 + $('.body').toggle();
  105 + event.preventDefault();
  106 + });
  107 +
103 108  
104 109 $('.save-article-form').submit(function (e) {
105 110 e.preventDefault();
... ...