diff options
| author | dumpfmprod <dumpfmprod@ubuntu.(none)> | 2010-02-28 11:33:20 -0500 |
|---|---|---|
| committer | dumpfmprod <dumpfmprod@ubuntu.(none)> | 2010-02-28 11:33:20 -0500 |
| commit | 6dd02a0fd44288c3d946713696a379f5eb5ed726 (patch) | |
| tree | e6990d79bc37d9b728aac2bc6040b5aa8f7cbefe /static/js/pichat.js | |
| parent | be94a0719507c2e9cf58a110013dfe24f978deab (diff) | |
Commit PROD changes
Diffstat (limited to 'static/js/pichat.js')
| -rwxr-xr-x | static/js/pichat.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/static/js/pichat.js b/static/js/pichat.js index d9f0016..985715d 100755 --- a/static/js/pichat.js +++ b/static/js/pichat.js @@ -19,10 +19,9 @@ var LastMsgContainsImage = false function linkReplace(url){ var PicRegex = /\.(jpg|jpeg|png|gif|bmp)$/i; var urlWithoutParams = url.replace(/\?.*$/i, ""); - linkUrl = url.indexOf('http://') == 0 ? url : 'http://' + url; - if (PicRegex.test(url)){ + if (PicRegex.test(urlWithoutParams)){ LastMsgContainsImage = true return "<a target='_blank' href='" + linkUrl + "'><img src='" + linkUrl + "'></a>" } else { |
