public/assets/js/application.js
author Vincent Tondellier <tonton@team1664.org>
Sat, 09 May 2015 23:17:47 +0200
changeset 67 9e95be0b1b8c
parent 64 f66d935647bc
permissions -rw-r--r--
Make the index columns configurable

// Adapted from socorro
// Licence: same as socorro (MPL ?)
$(document).ready(function () {
    $('.signature-column').append(' <a class="expand" href="#">[Expand]</a>');
    $('.expand').click(function () {
        $(".shortened-signature", $(this).parents('table')).each(function () {
            $(this).text($(this).attr('title')).removeAttr('title');
            $(this).removeClass("prettyprinted");
        });
        prettyPrint();
        $(this).remove();
        return false;
    });

    $('a[data-toggle="tooltip"]').tooltip();
    prettyPrint();
});