public/assets/js/application.js
changeset 3 2ff78fe4abda
child 12 c98d3fa4a948
equal deleted inserted replaced
2:873ceb7769a8 3:2ff78fe4abda
       
     1 $(document).ready(function () {
       
     2     $('.signature-column').append(' <a class="expand" href="#">[Expand]</a>');
       
     3     $('.expand').click(function () {
       
     4         // swap cell title into cell text for each cell in this column
       
     5         $(".shortened-signature", $(this).parents('table')).each(function () {
       
     6             $(this).text($(this).attr('title')).removeAttr('title');
       
     7         });
       
     8         $(this).remove();
       
     9         return false;
       
    10     });
       
    11 });