diff options
author | gebele <gebele@in-silico.ch> | 2013-03-25 12:21:39 +0100 |
---|---|---|
committer | gebele <gebele@in-silico.ch> | 2013-03-25 12:21:39 +0100 |
commit | 2b02d8fdafe4ea4d4027d5aa18d56fc77ec5ef9a (patch) | |
tree | 2ecf9ed0acdc6df4a3fbd0fc5a29264968e5e584 /views/neighbours.haml | |
parent | 61d24d4825325b2e2bcd0c707c0bd37ec32483e5 (diff) |
large neighbours table;popup for details
Diffstat (limited to 'views/neighbours.haml')
-rw-r--r-- | views/neighbours.haml | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/views/neighbours.haml b/views/neighbours.haml index e89fc7b..eec7d39 100644 --- a/views/neighbours.haml +++ b/views/neighbours.haml @@ -74,11 +74,12 @@ %a{:href => to("/prediction/#{CGI.escape(neighbour_compound.uri)}/details"), :id=>"link#{count_rs}#{count}", :target=>"details"} %img{:src=>"/images/arrow_right_float.png", :alt=>"arrow"} :javascript - $("a#link#{count_rs}#{count}").click(function () { - $("#iframe").show(); - document.getElementById('iframe').focus(); + $(function() { + $("a#link#{count_rs}#{count}").on('click', function(e) { + $('#iframe').bPopup(); + }); }); - count += 1 -%iframe{:id=>"iframe", :name=>"details", :height=>"400px", :width=>"100%", :style=>"display:none;border:0px"} +%iframe{:id=>"iframe", :name=>"details", :height=>"80%", :width=>"80%", :style=>"display:none;border:0px"} |