summaryrefslogtreecommitdiff
path: root/app/helpers
diff options
context:
space:
mode:
authorFatih Acet <acetfatih@gmail.com>2016-06-17 03:17:25 +0300
committerFatih Acet <acetfatih@gmail.com>2016-06-23 23:09:34 +0300
commitc93b1304679d9dc57d3afe59551471c2ab6d2726 (patch)
tree3aa8bc07b8ca4a12bf643d4be79033431248cc57 /app/helpers
parent3cb2d081aa650bc48dfa5317a3c4cefe6e725970 (diff)
downloadgitlab-ce-diff-option-buttons.tar.gz
Completed JS requirements for new diff options dropdown.diff-option-buttons
Diffstat (limited to 'app/helpers')
-rw-r--r--app/helpers/diff_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/diff_helper.rb b/app/helpers/diff_helper.rb
index 2df1e16c5c9..70316e7305e 100644
--- a/app/helpers/diff_helper.rb
+++ b/app/helpers/diff_helper.rb
@@ -120,7 +120,7 @@ module DiffHelper
# Always use HTML to handle case where JSON diff rendered this button
params_copy.delete(:format)
- link_to url_for(params_copy), id: "#{name}-diff-btn", class: (selected ? 'is-active' : ''), data: { view_type: name } do
+ link_to url_for(params_copy), id: "#{name}-diff-btn", class: (selected ? 'is-active js-diff-view-options' : 'js-diff-view-options'), data: { view_type: name } do
title
end
end