diff options
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"} |