Handle Commit "show suppressed diff" link with a doc-ready event handler.
Replaces link_to_function use which was deprecated in Rails v3.2.4.
9dc57fe9c
Still absent is a graceful degrade for no-JS.
This commit is contained in:
parent
5b1ede6280
commit
ef1598b4af
3 changed files with 8 additions and 6 deletions
|
@ -57,3 +57,10 @@ var CommitsList = {
|
|||
});
|
||||
}
|
||||
}
|
||||
|
||||
$(function () {
|
||||
$('a.supp_diff_link').live('click', function() {
|
||||
$(link).next('table').show();
|
||||
$(link).remove();
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue