summaryrefslogtreecommitdiff
path: root/views/layout.haml
diff options
context:
space:
mode:
authorgebele <gebele@in-silico.ch>2014-02-20 16:27:03 +0100
committergebele <gebele@in-silico.ch>2014-02-20 16:27:03 +0100
commite95e31449ef13b2e0f11ae7d209a12417ddcdc80 (patch)
tree74acfa18aad9e3dc1db40b44519f798a29dca2e6 /views/layout.haml
parent55942467844eb07128749cf0655e79e1b9f80a88 (diff)
parentecae07354c9a6b7f13fdf70ef832ccafc9c64d05 (diff)
Merge branch 'fileoutput' into feature/hide_elements
Conflicts: application.rb views/layout.haml views/neighbors.haml views/style.scss
Diffstat (limited to 'views/layout.haml')
-rw-r--r--views/layout.haml4
1 files changed, 2 insertions, 2 deletions
diff --git a/views/layout.haml b/views/layout.haml
index 280301b..b6b4c0e 100644
--- a/views/layout.haml
+++ b/views/layout.haml
@@ -13,7 +13,8 @@
url: uri,
//timeout: 120000;
success: function(data){
- data = "<h4>"+title+"</h4>"+"<button onclick='hide(\"" + title + "\",\"" + element + "\",\"" + uri + "\");'>Hide</button>" + data;
+ var slash = new RegExp("/","g");
+ data = "<h4>"+title+"</h4>"+"<button onclick='hide(\"" + title + "\",\"" + element + "\",\"" + uri + "\");'>Hide</button> <a href=\"" + uri + "/" + uri.replace("/cid/", "").replace(slash,'-') + ".csv\"> (csv)</a>" + data;
$(element).html(data);
},
error: function(data,textStatus,message){
@@ -117,4 +118,3 @@
return false;
});
});
-