improve facebook sharing copy
This commit is contained in:
		@@ -423,16 +423,17 @@ $(document).ready(function() {
 | 
				
			|||||||
    e.preventDefault();
 | 
					    e.preventDefault();
 | 
				
			||||||
    var challengeBlockName = $(this).children().attr('id');
 | 
					    var challengeBlockName = $(this).children().attr('id');
 | 
				
			||||||
    var challengeBlockEscapedName = challengeBlockName.replace(/\s/, '%20');
 | 
					    var challengeBlockEscapedName = challengeBlockName.replace(/\s/, '%20');
 | 
				
			||||||
 | 
					    var username = typeof window.username !== "undefined" ? window.username : "";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    var link = 'https://www.facebook.com/dialog/feed?' +
 | 
					    var link = 'https://www.facebook.com/dialog/feed?' +
 | 
				
			||||||
      'app_id=1644598365767721' +
 | 
					      'app_id=1644598365767721' +
 | 
				
			||||||
      '&display=page&' +
 | 
					      '&display=page&' +
 | 
				
			||||||
      'caption=I%20just%20completed%20' +
 | 
					      'caption=I%20just%20completed%20the%20' +
 | 
				
			||||||
      challengeBlockEscapedName +
 | 
					      challengeBlockEscapedName +
 | 
				
			||||||
      '%20on%20Free%20Code%20Camp' +
 | 
					      '%20section%20on%20Free%20Code%20Camp%2E%20Check%20out%20my%20portfolio%20so%20far%2E' +
 | 
				
			||||||
      '&link=http%3A%2F%2Ffreecodecamp.com' +
 | 
					      '&link=http%3A%2F%2Ffreecodecamp%2Ecom%2F' +
 | 
				
			||||||
      '&redirect_uri=http://freecodecamp.com/map';
 | 
					      username +
 | 
				
			||||||
 | 
					      '&redirect_uri=http%3A%2F%2Ffreecodecamp%2Ecom%2Fmap';
 | 
				
			||||||
    setMapShare(challengeBlockName);
 | 
					    setMapShare(challengeBlockName);
 | 
				
			||||||
    window.location.href = link;
 | 
					    window.location.href = link;
 | 
				
			||||||
  });
 | 
					  });
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -135,9 +135,10 @@ block content
 | 
				
			|||||||
                                    .button-spacer
 | 
					                                    .button-spacer
 | 
				
			||||||
                                    .row
 | 
					                                    .row
 | 
				
			||||||
                                        .col-xs-12.col-sm-8.col-md-6.col-sm-offset-3.col-md-offset-2
 | 
					                                        .col-xs-12.col-sm-8.col-md-6.col-sm-offset-3.col-md-offset-2
 | 
				
			||||||
                                            a.btn.btn-lg.btn-block.signup-btn.map-challenge-block-share Section complete! Tell your friends.
 | 
					                                            a.btn.btn-lg.btn-block.signup-btn.map-challenge-block-share Section complete. Share your Portfolio with your friends.
 | 
				
			||||||
                                                .hidden(id="#{challengeBlock.name}")
 | 
					                                                .hidden(id="#{challengeBlock.name}")
 | 
				
			||||||
 | 
					    script.
 | 
				
			||||||
 | 
					        var username = !{JSON.stringify(user && user.username || "")};
 | 
				
			||||||
    // #announcementModal.modal(tabindex='-1')
 | 
					    // #announcementModal.modal(tabindex='-1')
 | 
				
			||||||
    //    .modal-dialog.animated.fadeInUp.fast-animation
 | 
					    //    .modal-dialog.animated.fadeInUp.fast-animation
 | 
				
			||||||
    //        .modal-content
 | 
					    //        .modal-content
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user