public/assets/js/application.js
changeset 64 f66d935647bc
parent 38 6fa3cf9cf915
equal deleted inserted replaced
63:150e11f0fb7c 64:f66d935647bc
     3 $(document).ready(function () {
     3 $(document).ready(function () {
     4     $('.signature-column').append(' <a class="expand" href="#">[Expand]</a>');
     4     $('.signature-column').append(' <a class="expand" href="#">[Expand]</a>');
     5     $('.expand').click(function () {
     5     $('.expand').click(function () {
     6         $(".shortened-signature", $(this).parents('table')).each(function () {
     6         $(".shortened-signature", $(this).parents('table')).each(function () {
     7             $(this).text($(this).attr('title')).removeAttr('title');
     7             $(this).text($(this).attr('title')).removeAttr('title');
       
     8             $(this).removeClass("prettyprinted");
     8         });
     9         });
       
    10         prettyPrint();
     9         $(this).remove();
    11         $(this).remove();
    10         return false;
    12         return false;
    11     });
    13     });
    12 
    14 
    13     $('a[data-toggle="tooltip"]').tooltip();
    15     $('a[data-toggle="tooltip"]').tooltip();
       
    16     prettyPrint();
    14 });
    17 });