| author | Vincent Tondellier <tonton+hg@team1664.org> |
| Sun, 27 May 2012 19:31:35 +0200 | |
| changeset 9 | 998910202673 |
| parent 3 | 2ff78fe4abda |
| child 12 | c98d3fa4a948 |
| permissions | -rw-r--r-- |
|
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 |
}); |