summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/repo
diff options
context:
space:
mode:
authorJacob Schatz <jschatz1@gmail.com>2017-08-06 12:55:51 -0400
committerJacob Schatz <jschatz1@gmail.com>2017-08-06 12:55:51 -0400
commit67fd6b86546a7aacddf1bcdbe50b25c54206b790 (patch)
tree379db54480f6b0c58ef3529a86acf0ddcd6ba238 /app/assets/javascripts/repo
parent2c6895d6b5ddfc1b383e8f2d5d971161a86baae5 (diff)
downloadgitlab-ce-67fd6b86546a7aacddf1bcdbe50b25c54206b790.tar.gz
Edit button to class.
Diffstat (limited to 'app/assets/javascripts/repo')
-rw-r--r--app/assets/javascripts/repo/index.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/app/assets/javascripts/repo/index.js b/app/assets/javascripts/repo/index.js
index feba755af2d..67c03680fca 100644
--- a/app/assets/javascripts/repo/index.js
+++ b/app/assets/javascripts/repo/index.js
@@ -58,8 +58,7 @@ function initRepoEditButton(el) {
function initRepoBundle() {
const repo = document.getElementById('repo');
- const editButton = document.getElementById('editable-mode');
-
+ const editButton = document.querySelector('.editable-mode');
setInitialStore(repo.dataset);
addEventsForNonVueEls();
initDropdowns();