Created
February 26, 2013 15:14
-
-
Save lenagroeger/5039164 to your computer and use it in GitHub Desktop.
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 characters
| propublica.views.fbPost = propublica.View.extend({ | |
| cssClass : "member_box_fb_bt", | |
| bindings : { | |
| click : "post", | |
| }, | |
| post : function(e){ | |
| var curId = $(e.currentTarget).attr("data-id") | |
| var url = window.location.host + "/members/" + curId +".png"; | |
| FB.ui({ | |
| method : 'feed', | |
| link : url, | |
| display : "popup", | |
| picture : window.location.host + "/members/" + curId + ".png", | |
| name : 'Where My Congress Member Stands on Guns', | |
| description: "This is where " + curId + " stands on guns" | |
| }, function(fbPostResp){ | |
| }); | |
| } | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment