diff options
author | rautenberg <rautenberg@in-silico.ch> | 2013-10-23 12:27:50 +0200 |
---|---|---|
committer | rautenberg <rautenberg@in-silico.ch> | 2013-10-23 12:27:50 +0200 |
commit | 9095a48b0e22f51ece2f4e9539e41310ff544052 (patch) | |
tree | d0f132ad8cd074213a8c87eb04fe3cc02065b1f9 | |
parent | 773c75117fecdb6c328ce7ad8c8ce9d89e552f03 (diff) |
IE js replace fix
-rw-r--r-- | views/layout.haml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/views/layout.haml b/views/layout.haml index 976d172..5160c31 100644 --- a/views/layout.haml +++ b/views/layout.haml @@ -14,7 +14,8 @@ url: uri, //timeout: 120000; success: function(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; + 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){ |