Skip to content

Commit

Permalink
added js to tweet link as well as status
Browse files Browse the repository at this point in the history
  • Loading branch information
allenan committed May 31, 2012
1 parent 85b20c1 commit f1c5d80
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion js/tweetsweep.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,16 @@ $(document).ready(function() {
//execute tweet on click of tweet button
$('#tweet-btn').click(function() {
var status = $('#composition-textarea').val();
var link = $('.link-input').val();

var statusToPost = status + ' ' + link;

$.post(
'ajax/tweet.php',
{ status: status },
{ status: statusToPost },
function() {
$('#composition-textarea').val('');
$('.link-input').val('');
$.doTimeout(2000, function(){
updateUserTimeline();
});
Expand Down

0 comments on commit f1c5d80

Please sign in to comment.