summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorKieran Harkin <kieran@harkin.me>2015-06-24 11:48:17 +0200
committerKieran Harkin <kieran@harkin.me>2015-06-24 11:48:17 +0200
commit9d70ac386192ef044d5d9a2ad6df004151ed1626 (patch)
tree5a1d73ef78b7a42133a29545130e24f20963545c /js
parent3ffec35e4839069d32dcb60377888d0ab2289023 (diff)
pass full url back to client
Diffstat (limited to 'js')
-rw-r--r--js/pomf.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/pomf.js b/js/pomf.js
index 52d03ee..f5dd06b 100644
--- a/js/pomf.js
+++ b/js/pomf.js
@@ -124,9 +124,9 @@ $(function () {
eachRow(res.files, function (row, file, files) {
var link = $('<a>')
- link.attr('href', 'http://a.pomf.se/' + file.url)
+ link.attr('href', file.url)
.attr('target', '_BLANK')
- .text('a.pomf.se/' + file.url)
+ .text(file.url.replace("http://","").replace("https://",""))
$('.file-url', row).append(link)
})