From 46166d66c458eb9d922f0c6c4958654a761a7529 Mon Sep 17 00:00:00 2001 From: gebele Date: Mon, 22 Jun 2015 17:22:19 +0200 Subject: several updates for browser compatibility --- views/details.haml | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) (limited to 'views/details.haml') diff --git a/views/details.haml b/views/details.haml index 00d8f61..8a57440 100644 --- a/views/details.haml +++ b/views/details.haml @@ -1,15 +1,8 @@ -:javascript - $(document).ready(function(){ - $("#details").on('hidden.bs.modal', function() { - $(this).removeData('bs.modal'); - }); - }); - %div.modal-body{:style=>"padding:10px;"} %button.close{ :type=>" button", data: { dismiss:"modal"}} × - %h2 + %h3 Names and synonyms: - %img{:src=>"#{@compound.uri}/image", :alt=>"Compound image not available", :width=>"300px", :heigth=>"300px", :style=>"float:left;"} + %img.img-responsive{:src=>"#{@compound.uri}/image", :alt=>"Compound image not available", :width=>"300px", :heigth=>"300px", :style=>"float:left;"} %p %b="SMILES:" %p= @smiles @@ -28,4 +21,4 @@ / pubchem link %a.btn.btn-primary{:href=>"http://aop.in-silico.ch/", :title=>"Link opens in new window.", :alt=>"pubchem read across", :target=>"_blank"} PubChem read across %i (experimental) - + %br -- cgit v1.2.3