public/assets/js/application.js
author Vincent Tondellier <tonton+hg@team1664.org>
Sun, 03 Aug 2014 16:45:34 +0200
changeset 27 2b158020f0d5
parent 12 c98d3fa4a948
child 38 6fa3cf9cf915
permissions -rw-r--r--
Revert to the non-async gearman client. I'm unable to make the AnyEvent client work with plack-based servers. Use gearman background jobs instead

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