public/assets/js/application.js
changeset 108 e4e5cfaf5814
parent 107 6f411821b12b
child 109 3b95550f4189
equal deleted inserted replaced
107:6f411821b12b 108:e4e5cfaf5814
     1 // Adapted from socorro
       
     2 // Licence: same as socorro (MPL ?)
       
     3 $(document).ready(function () {
       
     4     $('.signature-column').append(' <a class="expand" href="#">[Expand]</a>');
       
     5     $('.expand').click(function () {
       
     6         $(".shortened-signature", $(this).parents('table')).each(function () {
       
     7             $(this).text($(this).attr('title')).removeAttr('title');
       
     8             $(this).removeClass("prettyprinted");
       
     9         });
       
    10         prettyPrint();
       
    11         $(this).remove();
       
    12         return false;
       
    13     });
       
    14 
       
    15     $('a[data-toggle="tooltip"]').tooltip();
       
    16     prettyPrint();
       
    17 });