public/assets/js/application.js
author Vincent Tondellier <tonton+hg@team1664.org>
Mon, 15 Feb 2016 00:04:51 +0100
changeset 105 d7258a3a926c
parent 64 f66d935647bc
permissions -rw-r--r--
Invert list and stats to avoid bug with pagination

// 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();
});