diff options
author | gebele <gebele@in-silico.ch> | 2014-02-20 12:32:48 +0100 |
---|---|---|
committer | gebele <gebele@in-silico.ch> | 2014-02-20 12:32:48 +0100 |
commit | 55942467844eb07128749cf0655e79e1b9f80a88 (patch) | |
tree | 735e68141ec6d4eb0ccd5935e0b5db22dab97d75 /views/targets.haml | |
parent | a203829bc186ba03f16bc5f2a20bfc2b1ec55974 (diff) |
added external links js function
Diffstat (limited to 'views/targets.haml')
-rw-r--r-- | views/targets.haml | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/views/targets.haml b/views/targets.haml index 9622abd..09e6009 100644 --- a/views/targets.haml +++ b/views/targets.haml @@ -7,5 +7,9 @@ %dd Assay IDs: - @assays.select{|a| a["Target GI"] == target.last}.each do |assay| - %a{:href => "http://pubchem.ncbi.nlm.nih.gov/assay/assay.cgi?aid=#{assay["AID"]}"} #{assay['AID']} + %a{:href => "http://pubchem.ncbi.nlm.nih.gov/assay/assay.cgi?aid=#{assay["AID"]}", :rel => "_blank"} #{assay['AID']} + :javascript + $('A[rel="_blank"]').each(function(){ + $(this).attr('target', '_blank'); + }); |