public/assets/js/application.js
author Vincent Tondellier <tonton+hg@team1664.org>
Thu, 03 May 2012 13:17:05 +0200
changeset 6 8dfc7e5dbdc7
parent 3 2ff78fe4abda
child 12 c98d3fa4a948
permissions -rw-r--r--
Fix compatibility with perl < 5.11
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
3
2ff78fe4abda Create helper to shorten signatures and create links to the repository
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
     1
$(document).ready(function () {
2ff78fe4abda Create helper to shorten signatures and create links to the repository
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
     2
    $('.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
     3
    $('.expand').click(function () {
2ff78fe4abda Create helper to shorten signatures and create links to the repository
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
     4
        // swap cell title into cell text for each cell in this column
2ff78fe4abda Create helper to shorten signatures and create links to the repository
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
     5
        $(".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
     6
            $(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
     7
        });
2ff78fe4abda Create helper to shorten signatures and create links to the repository
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
     8
        $(this).remove();
2ff78fe4abda Create helper to shorten signatures and create links to the repository
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
     9
        return false;
2ff78fe4abda Create helper to shorten signatures and create links to the repository
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
    10
    });
2ff78fe4abda Create helper to shorten signatures and create links to the repository
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
    11
});