summaryrefslogtreecommitdiff
path: root/views/neighbours.haml
diff options
context:
space:
mode:
authorgebele <gebele@in-silico.ch>2013-03-25 12:21:39 +0100
committergebele <gebele@in-silico.ch>2013-03-25 12:21:39 +0100
commit2b02d8fdafe4ea4d4027d5aa18d56fc77ec5ef9a (patch)
tree2ecf9ed0acdc6df4a3fbd0fc5a29264968e5e584 /views/neighbours.haml
parent61d24d4825325b2e2bcd0c707c0bd37ec32483e5 (diff)
large neighbours table;popup for details
Diffstat (limited to 'views/neighbours.haml')
-rw-r--r--views/neighbours.haml9
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"}