public/assets/js/application.js
changeset 12 c98d3fa4a948
parent 3 2ff78fe4abda
child 38 6fa3cf9cf915
equal deleted inserted replaced
11:0bef3b8087c1 12:c98d3fa4a948
       
     1 // Adapted from socorro
       
     2 // Licence: same as socorro (MPL ?)
     1 $(document).ready(function () {
     3 $(document).ready(function () {
     2     $('.signature-column').append(' <a class="expand" href="#">[Expand]</a>');
     4     $('.signature-column').append(' <a class="expand" href="#">[Expand]</a>');
     3     $('.expand').click(function () {
     5     $('.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         $(".shortened-signature", $(this).parents('table')).each(function () {
     6             $(this).text($(this).attr('title')).removeAttr('title');
     7             $(this).text($(this).attr('title')).removeAttr('title');
     7         });
     8         });
     8         $(this).remove();
     9         $(this).remove();
     9         return false;
    10         return false;