summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Andrinopoulos <geoandri@gmail.com>2017-04-11 20:26:01 +0300
committerGeorge Andrinopoulos <geoandri@gmail.com>2017-04-11 20:30:28 +0300
commit8d0c7e8451e76fd7ef55b9e7a2bda3e4eada2dda (patch)
tree9eb3a8f8965860a41f8a89a5822b5d659b9ac3cc
parent4306c0b41a75a0924c03c1c6ed6fac01a992a234 (diff)
downloadgitlab-ce-8d0c7e8451e76fd7ef55b9e7a2bda3e4eada2dda.tar.gz
Rename wiki-edit class to js-wiki-edit
-rw-r--r--app/assets/javascripts/shortcuts_wiki.js2
-rw-r--r--app/views/projects/wikis/_main_links.html.haml2
2 files changed, 2 insertions, 2 deletions
diff --git a/app/assets/javascripts/shortcuts_wiki.js b/app/assets/javascripts/shortcuts_wiki.js
index 425f35f22fb..8a075062a48 100644
--- a/app/assets/javascripts/shortcuts_wiki.js
+++ b/app/assets/javascripts/shortcuts_wiki.js
@@ -11,6 +11,6 @@ export default class ShortcutsWiki extends ShortcutsNavigation {
}
editWiki() {
- findAndFollowLink('.wiki-edit');
+ findAndFollowLink('.js-wiki-edit');
}
}
diff --git a/app/views/projects/wikis/_main_links.html.haml b/app/views/projects/wikis/_main_links.html.haml
index 71bc33df463..6a578dbf640 100644
--- a/app/views/projects/wikis/_main_links.html.haml
+++ b/app/views/projects/wikis/_main_links.html.haml
@@ -5,5 +5,5 @@
= link_to namespace_project_wiki_history_path(@project.namespace, @project, @page), class: "btn" do
Page history
- if can?(current_user, :create_wiki, @project) && @page.latest?
- = link_to namespace_project_wiki_edit_path(@project.namespace, @project, @page), class: "btn wiki-edit" do
+ = link_to namespace_project_wiki_edit_path(@project.namespace, @project, @page), class: "btn js-wiki-edit" do
Edit