diff options
Diffstat (limited to 'static')
| -rwxr-xr-x | static/pichat.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/static/pichat.js b/static/pichat.js index b12c772..5567ea8 100755 --- a/static/pichat.js +++ b/static/pichat.js @@ -62,7 +62,9 @@ function buildMessageDiv(msg) { var match = URLRegex.exec(msg.content)
if (match) {
return '<div class="msgDev"><b>' + msg.nick + ': </b>'
- + '<img height="150" width="150" src="' + match[0] + '" /></div>';
+ + '<a href="' + match[0] + '" target="_blank">'
+ + '<img height="150" width="150" src="'
+ + match[0] + '" /></a></div>';
} else {
return '<div class="msgDiv"><b>' + msg.nick + ": </b>"
+ msg.content + "</div>";
|
