Sha256: 8527b76b0f8938a46bbbcdec47bb824d206bddc2bedf0f667910363ff8a6c07a

Contents?: true

Size: 523 Bytes

Versions: 87

Compression:

Stored size: 523 Bytes

Contents

// Based on https://css-tricks.com/row-and-column-highlighting/
// For tables with a class column_hover, highight the column the user is
// hovering over.

$(function() {
  $("table.column_hover").delegate('td','mouseover mouseleave', function(e) {
    if (e.type == 'mouseover') {
      $(this).parent().addClass("hover");
      $("colgroup").eq($(this).index()).addClass("hover");
    }
    else {
      $(this).parent().removeClass("hover");
      $("colgroup").eq($(this).index()).removeClass("hover");
    }
  });
});

Version data entries

87 entries across 87 versions & 1 rubygems

Version Path
renalware-core-2.0.84 app/assets/javascripts/renalware/table.js
renalware-core-2.0.83 app/assets/javascripts/renalware/table.js
renalware-core-2.0.82 app/assets/javascripts/renalware/table.js
renalware-core-2.0.81 app/assets/javascripts/renalware/table.js
renalware-core-2.0.80 app/assets/javascripts/renalware/table.js
renalware-core-2.0.79 app/assets/javascripts/renalware/table.js
renalware-core-2.0.78 app/assets/javascripts/renalware/table.js