summaryrefslogtreecommitdiff
path: root/app/assets/javascripts
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2015-07-23 15:55:49 -0400
committerRobert Speicher <rspeicher@gmail.com>2015-07-23 16:07:45 -0400
commitcad0e848b099ab1993d1088e317fb6e5307862ad (patch)
tree1ed6d6b78763786d2c281f314b928cc4154f2b93 /app/assets/javascripts
parent7e262ebf157f2af4658485aae7073d315648cfa7 (diff)
downloadgitlab-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.coffee7
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()