]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
render image urls
authorAnthony Minessale <anthm@freeswitch.org>
Thu, 24 Jul 2014 20:38:12 +0000 (01:38 +0500)
committerAnthony Minessale <anthm@freeswitch.org>
Thu, 24 Jul 2014 20:38:12 +0000 (01:38 +0500)
html5/verto/demo/verto.js

index de27cabbb1832523c3fd0b5831f7f026693e63e8..e8cc4568672f6dfcb33191c58c58013d5098ac58 100644 (file)
@@ -115,7 +115,7 @@ var callbacks = {
            var body = data.body;
 
            if (body.match(/\.gif|\.jpg|\.jpeg|\.png/)) {
-               body = body.replace(/(http[s]{0,1}:\/\/\S+)/g, "<a target='_blank' href='$1'>$1<br><img border='0' class='chatimg' src='$1'><\/a>");
+               body = body.replace(/(http[s]{0,1}:\/\/\S+)/g, "<a target='_blank' href='$1'>$1<br><img border='0' class='chatimg' src='$1?dl=1'><\/a>");
            } else {
                body = body.replace(/(http[s]{0,1}:\/\/\S+)/g, "<a target='_blank' href='$1'>$1<\/a>");
            }