Skip to content
This repository has been archived by the owner on Apr 18, 2019. It is now read-only.

Commit

Permalink
changed var name to match the name in the docs
Browse files Browse the repository at this point in the history
  • Loading branch information
erik committed Jul 17, 2009
1 parent 25b1cbc commit 5d991ff
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions widget.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ var widget = document.getElementById('widget'),
return;
}
var href = encodeURIComponent(document.location.href),
text = widget.getElementsByTagName('textarea')[0].value,
title = ' left a comment at '+href,
body = encodeURIComponent(text.substr(0,9)+'...'),//title will be the first 10 char from comment w/ trailing elipses
params = 'link='+href+'&title='+title+'&body='+body+'&token='+encodeURIComponent(token),
text = widget.getElementsByTagName('textarea')[0].value,
description = encodeURIComponent(text.substr(0,9)+'...'),//title will be the first 10 char from comment w/ trailing elipses
params = 'link='+href+'&title='+title+'&description='+description+'&token='+encodeURIComponent(token),
callback = {
success: function(o){
if (o.responseText){
Expand Down

0 comments on commit 5d991ff

Please sign in to comment.