public/assets/js/application.js
author Vincent Tondellier <tonton+hg@team1664.org>
Mon, 04 Aug 2014 14:52:24 +0200
changeset 32 3e776f1b21d4
parent 12 c98d3fa4a948
child 38 6fa3cf9cf915
permissions -rw-r--r--
Fix and improve atom/rss feed
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
12
c98d3fa4a948 Add licence
Vincent Tondellier <tonton+hg@team1664.org>
parents: 3
diff changeset
     1
// Adapted from socorro
c98d3fa4a948 Add licence
Vincent Tondellier <tonton+hg@team1664.org>
parents: 3
diff changeset
     2
// Licence: same as socorro (MPL ?)
3
2ff78fe4abda Create helper to shorten signatures and create links to the repository
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
     3
$(document).ready(function () {
2ff78fe4abda Create helper to shorten signatures and create links to the repository
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
     4
    $('.signature-column').append(' <a class="expand" href="#">[Expand]</a>');
2ff78fe4abda Create helper to shorten signatures and create links to the repository
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
     5
    $('.expand').click(function () {
2ff78fe4abda Create helper to shorten signatures and create links to the repository
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
     6
        $(".shortened-signature", $(this).parents('table')).each(function () {
2ff78fe4abda Create helper to shorten signatures and create links to the repository
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
     7
            $(this).text($(this).attr('title')).removeAttr('title');
2ff78fe4abda Create helper to shorten signatures and create links to the repository
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
     8
        });
2ff78fe4abda Create helper to shorten signatures and create links to the repository
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
     9
        $(this).remove();
2ff78fe4abda Create helper to shorten signatures and create links to the repository
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
    10
        return false;
2ff78fe4abda Create helper to shorten signatures and create links to the repository
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
    11
    });
2ff78fe4abda Create helper to shorten signatures and create links to the repository
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
    12
});