Permalink
Browse files

Adjusting table-line highlighting behavior.

  • Loading branch information...
1 parent 2a4a91a commit 2d996d2f3956d41f15b1e2ba6d13accb6633d4ce @matthewhudson matthewhudson committed Apr 12, 2013
Showing with 3 additions and 2 deletions.
  1. +2 −1 sixpack/static/js/experiment.js
  2. +1 −1 sixpack/templates/details.html
View
3 sixpack/static/js/experiment.js
@@ -41,7 +41,7 @@ $(function () {
});
my.el.append(my.template(data));
- $('table tr').hover(
+ $("li[data-name='" + my.name + "'] tr").hover(
function () {
var alt_name = $(this).attr('class');
if (!alt_name) return;
@@ -50,6 +50,7 @@ $(function () {
var line = d3.select("#" + alt_name);
line.attr('class', line.attr('class') + " line-hover")
+ line.attr('class', line.attr('class') + " line-hover");
},
function () {
$(this).removeClass('highlight');
View
2 sixpack/templates/details.html
@@ -99,7 +99,7 @@ <h3 class="name">
</script>
<div id="details-page">
- <ul class="experiments"><li></li></ul>
+ <ul class="experiments"><li data-name="{{ experiment.name }}"></li></ul>
</div>
<div class="modal hide fade" id="desc-modal">

0 comments on commit 2d996d2

Please sign in to comment.