Commit a99b329ebb5e09fee158d50f91c8320e29eaab51

Authored by Leonardo Merlin
1 parent 931f70fe

Fix #62: sumindo botão de contextos diferentes

Showing 1 changed file with 5 additions and 2 deletions   Show diff stats
js/main.js
... ... @@ -88,15 +88,18 @@ $.getJSON(noosferoAPI)
88 88  
89 89 $( '.send-button a' ).click(function(event){
90 90 //display form to send proposal (or login form for non-logged users)
91   - loginButton = $(this).parents('.send-button');
  91 + var $this = $(this);
  92 + loginButton = $this.parents('.send-button');
92 93 loginButton.hide();
93   - $('.success-proposal-sent').hide();
  94 + $this.parents('.success-proposal-sent').hide();
94 95 loginCallback(logged_in);
95 96 event.preventDefault();
96 97 });
  98 +
97 99 $( '#display-contrast' ).click(function(event){
98 100 $('#proposal-result').toggleClass('contrast');
99 101 });
  102 +
100 103 $( '.show_body a' ).click(function(event){
101 104 event.preventDefault();
102 105  
... ...