public/assets/js/application.js
author Vincent Tondellier <tonton+hg@team1664.org>
Thu, 28 Aug 2014 00:06:24 +0200
changeset 48 d6c5b0633fe2
parent 38 6fa3cf9cf915
child 64 f66d935647bc
permissions -rw-r--r--
Use a recommended version number to avoid the strange eval dance when using '1' only Fixes the last perlcritic error

// 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).remove();
        return false;
    });

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