diff options
author | rautenberg <rautenberg@in-silico.ch> | 2013-10-23 00:18:26 +0200 |
---|---|---|
committer | rautenberg <rautenberg@in-silico.ch> | 2013-10-23 00:18:26 +0200 |
commit | 1a779e4fab4f42f27d867fcda24bf207cc2ece8a (patch) | |
tree | fa8e1ade214dd3200c41e22dea10ae762eb6347d /views | |
parent | 6d6fdf889eace978aaacbde1335264c9fccaa874 (diff) |
add basic csv download posibilities
Diffstat (limited to 'views')
-rw-r--r-- | views/layout.haml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/views/layout.haml b/views/layout.haml index 827baaf..1e1c7d3 100644 --- a/views/layout.haml +++ b/views/layout.haml @@ -14,7 +14,7 @@ url: uri, //timeout: 120000; success: function(data){ - data = "<h4>"+title+"</h4>"+"<button onclick='hide(\"" + title + "\",\"" + element + "\",\"" + uri + "\");'>Hide</button>" + data; + data = "<h4>"+title+"</h4>"+"<button onclick='hide(\"" + title + "\",\"" + element + "\",\"" + uri + "\");'>Hide</button> <a href=\"" + uri + "/" + uri.replace("/cid/", "").replace("/",'-','g') + ".csv\"> (csv)</a>" + data; $(element).html(data); }, error: function(data,textStatus,message){ |