summaryrefslogtreecommitdiff
path: root/share/frontend/gallery-static/js/main.js
diff options
context:
space:
mode:
Diffstat (limited to 'share/frontend/gallery-static/js/main.js')
-rw-r--r--share/frontend/gallery-static/js/main.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/share/frontend/gallery-static/js/main.js b/share/frontend/gallery-static/js/main.js
index 742a1df..51cb87c 100644
--- a/share/frontend/gallery-static/js/main.js
+++ b/share/frontend/gallery-static/js/main.js
@@ -53,8 +53,12 @@ var Dump = {
load_rebus: function(){
var as_str = Dump.current_urls.join(" ")
window.localStorage.setItem('urls', as_str)
- $("#rebus").html("")
- Dump.current_urls.map(function(url){ $("#rebus").append($("<img>").attr("src", url))})
+// $("#rebus").html("")
+ $("#rebus").html(
+ Dump.current_urls.map(
+ function(url){ return $("<img>").attr("src", url)[0].outerHTML}
+ ).join(" ")
+ )
$("#rebus").show()
console.log(as_str)
$("#urlz").val( as_str )