public/assets/js/application.js
changeset 3 2ff78fe4abda
child 12 c98d3fa4a948
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/public/assets/js/application.js	Wed May 02 21:46:30 2012 +0200
@@ -0,0 +1,11 @@
+$(document).ready(function () {
+    $('.signature-column').append(' <a class="expand" href="#">[Expand]</a>');
+    $('.expand').click(function () {
+        // swap cell title into cell text for each cell in this column
+        $(".shortened-signature", $(this).parents('table')).each(function () {
+            $(this).text($(this).attr('title')).removeAttr('title');
+        });
+        $(this).remove();
+        return false;
+    });
+});