aboutsummaryrefslogtreecommitdiff
path: root/bh20simplewebuploader/static
diff options
context:
space:
mode:
Diffstat (limited to 'bh20simplewebuploader/static')
-rw-r--r--bh20simplewebuploader/static/main.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/bh20simplewebuploader/static/main.js b/bh20simplewebuploader/static/main.js
index efbf615..8baf635 100644
--- a/bh20simplewebuploader/static/main.js
+++ b/bh20simplewebuploader/static/main.js
@@ -110,7 +110,11 @@ function demofetchHTMLTable(apiEndPoint) {
for (var i=0; i<data[1].length;i++) {
htmlString+="</tr><tr>"
for (var j=0; j<keys.length;j++){
- htmlString+="<td>"+data[1][i][keys[j]]+"</td>"
+ content = data[1][i][keys[j]];
+ if (content.startsWith("http://")) {
+ content = "<a href=\""+content+"\">"+content+"</a>";
+ }
+ htmlString+="<td>"+content+"</td>"
}
htmlString+="</tr>"
}