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
@@ -79,7 +79,9 @@ @@ -79,7 +79,9 @@
79 <img src="{{../host}}{{image.url}}"/> 79 <img src="{{../host}}{{image.url}}"/>
80 </div> 80 </div>
81 <div class='title'>{{title}}</div> 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 <div class='make-proposal-container'> 85 <div class='make-proposal-container'>
84 <div class='make-proposal'> 86 <div class='make-proposal'>
85 <div class='container-title'>Faça Uma Proposta</div> 87 <div class='container-title'>Faça Uma Proposta</div>
@@ -100,6 +100,11 @@ $.getJSON(noosferoAPI) @@ -100,6 +100,11 @@ $.getJSON(noosferoAPI)
100 loginCallback(logged_in); 100 loginCallback(logged_in);
101 event.preventDefault(); 101 event.preventDefault();
102 }); 102 });
  103 + $( '.show_body a' ).click(function(event){
  104 + $('.body').toggle();
  105 + event.preventDefault();
  106 + });
  107 +
103 108
104 $('.save-article-form').submit(function (e) { 109 $('.save-article-form').submit(function (e) {
105 e.preventDefault(); 110 e.preventDefault();