Skip to content

Instantly share code, notes, and snippets.

@watagashi
Created February 17, 2012 15:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save watagashi/1854117 to your computer and use it in GitHub Desktop.
Save watagashi/1854117 to your computer and use it in GitHub Desktop.
function quoteStatus(id, user, ele) {
id = id || popup_id;
user = user || popup_user;
ele = ele || popup_ele;
if (!id) return false;
if ($('lock-' + ele.id) && !confirm(_("This tweet is protected; Are you sure to retweet?"))) return false;
var tw = !display_as_rt && ele.tw.retweeted_status || ele.tw;
$('fst').value = twitterURL.replace('http', 'https') + "#!/" + user + "/statuses/"+ id + " RT @"+user+": " + charRef(tw.text);
$('fst').focus(); $('fst').select();
return false;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment