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
@@ -88,15 +88,18 @@ $.getJSON(noosferoAPI) @@ -88,15 +88,18 @@ $.getJSON(noosferoAPI)
88 88
89 $( '.send-button a' ).click(function(event){ 89 $( '.send-button a' ).click(function(event){
90 //display form to send proposal (or login form for non-logged users) 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 loginButton.hide(); 93 loginButton.hide();
93 - $('.success-proposal-sent').hide(); 94 + $this.parents('.success-proposal-sent').hide();
94 loginCallback(logged_in); 95 loginCallback(logged_in);
95 event.preventDefault(); 96 event.preventDefault();
96 }); 97 });
  98 +
97 $( '#display-contrast' ).click(function(event){ 99 $( '#display-contrast' ).click(function(event){
98 $('#proposal-result').toggleClass('contrast'); 100 $('#proposal-result').toggleClass('contrast');
99 }); 101 });
  102 +
100 $( '.show_body a' ).click(function(event){ 103 $( '.show_body a' ).click(function(event){
101 event.preventDefault(); 104 event.preventDefault();
102 105