diff options
| author | sostler <sbostler@gmail.com> | 2010-03-26 15:40:51 -0400 |
|---|---|---|
| committer | sostler <sbostler@gmail.com> | 2010-03-26 15:40:51 -0400 |
| commit | da30c6c48e646efd38e8042370664115b99d6b1e (patch) | |
| tree | ba7d0e881f227296202b7a70bd5a313f51ee1909 /static/js | |
| parent | 42150227b1f6fa6798862e0ef92e7ee3a8bcafc1 (diff) | |
| parent | 27afb7560d470782f81523f7dff3242c8f31dbdd (diff) | |
Merge Share indent
Diffstat (limited to 'static/js')
| -rwxr-xr-x | static/js/pichat.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/static/js/pichat.js b/static/js/pichat.js index bb75960..f643970 100755 --- a/static/js/pichat.js +++ b/static/js/pichat.js @@ -23,7 +23,7 @@ function linkify(text) { // durty hack to use a global to check this... but otherwise i'd have to rewrite the String.replace function? :/ var LastMsgContainsImage = false -function linkReplace(url){ +function linkReplace(url) { var PicRegex = /\.(jpg|jpeg|png|gif|bmp)$/i; var urlWithoutParams = url.replace(/\?.*$/i, ""); @@ -573,7 +573,7 @@ Share = { "getMessage": function(button){ var message = $(button).parents(".logged-dump") var id = message.attr("id").substr(8) // cut "message-001" to "001" - var nick = message.find("a").attr("href").substr(3) // cut "/u/timb" to "timb" + var nick = message.attr("nick") // cut "/u/timb" to "timb" var link = "http://dump.fm/p/" + nick + "/" + id var content = message.find(".linkify") if (!content.length) content = message.find(".content") |
