diff options
| author | root <root@lalalizard.com> | 2012-12-23 13:51:44 -0500 |
|---|---|---|
| committer | root <root@lalalizard.com> | 2012-12-24 12:06:12 -0500 |
| commit | 06a01eb199dd8564c5efa0316e727f2a85afceb5 (patch) | |
| tree | e5913b7b64f8fbc1e15117948fc0dec2f88826d6 /frontend/static/js | |
| parent | cf819bf0f8d5210c676551368d9398457b167071 (diff) | |
images likes
Diffstat (limited to 'frontend/static/js')
| -rw-r--r-- | frontend/static/js/chat.js | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/frontend/static/js/chat.js b/frontend/static/js/chat.js index 822e1ee..0c0656e 100644 --- a/frontend/static/js/chat.js +++ b/frontend/static/js/chat.js @@ -13,11 +13,11 @@ var Chat = parse: function (row) { var s = '<a href="/profile/' + row[2] + '" class="u">' + row[2] + "</a> <span>" - s += Chat.parseWords(row[3]) + s += Chat.parseWords(row[3],row[0]) s += "</span><br />" return s }, - parseWords: function (raw) + parseWords: function (raw,id) { if (! raw) return "" @@ -97,7 +97,10 @@ var Chat = word.indexOf(".gif") !== -1 || word.indexOf(".png") !== -1) { - s += '<a href="'+word+'" target="_blank" class="pic"><img src="'+word+'" /></a>' + s += + '<a href="'+word+'" target="_blank" class="pic">'+ + '<img src="'+word+'" />'+ + '</a><br><span id="like_'+id+'" class="like img_like" onClick="Like.likeVideo({id:'+id+'})">like</span>' } else if (word.indexOf("scannerjammer.com/profile") !== -1) { |
