diff options
author | gebele <gebele@in-silico.ch> | 2013-03-21 15:37:28 +0100 |
---|---|---|
committer | gebele <gebele@in-silico.ch> | 2013-03-21 15:37:28 +0100 |
commit | e18adec09d77c2461ba15a2a5d02734d4015327e (patch) | |
tree | 7027953ee1dea1675dcc975c3e8652c9026a713f /views/prediction.haml | |
parent | 84bb7c7ff4afcb1ad7ad1c68f0eb778c64f63183 (diff) |
3bloc result view
Diffstat (limited to 'views/prediction.haml')
-rw-r--r-- | views/prediction.haml | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/views/prediction.haml b/views/prediction.haml index 47a4dfa..82c7254 100644 --- a/views/prediction.haml +++ b/views/prediction.haml @@ -29,11 +29,15 @@ = "Confidence:\n" = p.data_entries[0][2].round(3) %br - %a{:href=> to("/prediction/neighbours/#{count}"), :target=> "neighbours"} + %a{:href=> "#tabs", :id=>"link#{count}"} %img{:src=>"/images/arrow_down_float.png", :alt=>"arrow"} + :javascript + $("a#link#{count}").click(function () { + $(".results").toggle(); + document.getElementById('tabs').focus(); + $("#tabs").tabs({ active: "#{count}" }); + }); - count+=1 - - %iframe{:id=>"neighbours", :name=>"neighbours", :width=>"50%", :height=>"400px", :style=>"float:left; border:0px"} - %iframe{:id=>"details", :name=>"details", :width=>"50%", :height=>"400px", :style=>"border:0px"} - + + = haml :neighbours, :layout => false |