diff options
author | Robert Speicher <rspeicher@gmail.com> | 2015-07-23 15:55:49 -0400 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2015-07-23 16:07:45 -0400 |
commit | cad0e848b099ab1993d1088e317fb6e5307862ad (patch) | |
tree | 1ed6d6b78763786d2c281f314b928cc4154f2b93 /app/assets/javascripts | |
parent | 7e262ebf157f2af4658485aae7073d315648cfa7 (diff) | |
download | gitlab-ce-cad0e848b099ab1993d1088e317fb6e5307862ad.tar.gz |
Fix and style the "Changes suppressed" link.rs-changes-suppressed-link
Diffstat (limited to 'app/assets/javascripts')
-rw-r--r-- | app/assets/javascripts/application.js.coffee | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/app/assets/javascripts/application.js.coffee b/app/assets/javascripts/application.js.coffee index 8b041c490d8..bb0a0c51fd4 100644 --- a/app/assets/javascripts/application.js.coffee +++ b/app/assets/javascripts/application.js.coffee @@ -164,9 +164,10 @@ $ -> $('.account-box').hover -> $(@).toggleClass('hover') # Commit show suppressed diff - $(".diff-content").on "click", ".supp_diff_link", -> - $(@).next('table').show() - $(@).remove() + $(document).on 'click', '.diff-content .js-show-suppressed-diff', -> + $container = $(@).parent() + $container.next('table').show() + $container.remove() $('.navbar-toggle').on 'click', -> $('.header-content .title').toggle() |