Commit e685518282bfa513c82cdf8315ecdf35ecbc5241

Authored by Antonio Terceiro
2 parents 6ce76a6e 943ccd6f

Merge branch 'AI3240-fix_join_and_leave' into 'master'

Ai3240 fix join and leave

See merge request !272
Showing 1 changed file with 3 additions and 3 deletions   Show diff stats
public/javascripts/add-and-join.js
1 1 jQuery(function($) {
2 2  
3 3 $(".add-friend").live('click', function(){
4   - clicked = $(this)
  4 + clicked = $(this);
5 5 url = clicked.attr("href");
6 6 loading_for_button(this);
7 7 $.post(url, function(data){
... ... @@ -12,7 +12,7 @@ jQuery(function($) {
12 12 })
13 13  
14 14 $(".join-community").live('click', function(){
15   - clicked = $(".join-community");
  15 + clicked = $(this);
16 16 url = clicked.attr("href");
17 17 loading_for_button(this);
18 18 $.post(url, function(data){
... ... @@ -29,7 +29,7 @@ jQuery(function($) {
29 29 })
30 30  
31 31 $(".leave-community").live('click', function(){
32   - clicked = $(".leave-community");
  32 + clicked = $(this);
33 33 url = clicked.attr("href");
34 34 loading_for_button(this);
35 35 $.post(url, function(data){
... ...