diff options
| author | tim b <timb@camcompu.home> | 2010-09-26 22:02:34 -0700 |
|---|---|---|
| committer | tim b <timb@camcompu.home> | 2010-09-26 22:02:34 -0700 |
| commit | 3e50c24721853cbb89f07292c5e7eed104ba986a (patch) | |
| tree | e073ea6c8a22d4ede101c170369077da9f7fc8d7 /static/js | |
| parent | b576b4af9080f60ad9888d6d47bfd24b137af588 (diff) | |
support compressed image urls in search
Diffstat (limited to 'static/js')
| -rw-r--r-- | static/js/pichat.js | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/static/js/pichat.js b/static/js/pichat.js index 0dc8677..5259be5 100644 --- a/static/js/pichat.js +++ b/static/js/pichat.js @@ -1390,7 +1390,14 @@ var Search = { } else { Search.initSpaceFill() var urls = [] - results.forEach(function(r){ urls.push(r.url) }) + results.forEach(function(r){ + var url = r.url + if (url.charAt(0) == '/') + url = 'http://dump.fm/images' + url + else + url = 'http://' + url + urls.push(url) + }) ImgCache.add("search", urls) } }, |
