Created
August 17, 2009 23:23
-
-
Save onedesign/169443 to your computer and use it in GitHub Desktop.
Revisions
-
onedesign revised this gist
Aug 17, 2009 . 1 changed file with 3 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,6 +1,8 @@ $("#add_to_team").live("click", function() { var player_href = $(this).attr('href') var player_slug = player_href.substring(player_href.search(/[a-z]+-[a-z]+$/)); $.post('/fantasy_team_players', {id: player_slug}, function(data) { success: $("#add_to_team").html("added to your team") }, "json"); return false; }); -
onedesign created this gist
Aug 17, 2009 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,6 @@ $("#add_to_team").live("click", function() { var player_href = $(this).attr('href') var player_slug = player_href.substring(player_href.search(/[a-z]+-[a-z]+$/)); $.post('/fantasy_team_players', {id: player_slug}); return false; });