summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2015-12-02 14:41:02 +0100
committerDouwe Maan <douwe@gitlab.com>2015-12-02 14:41:57 +0100
commitc0e614d1c46cd273f83385ef61c76200d492d0a4 (patch)
tree75bb038cd5e2cd685dbea23c74980ce2cd274f26
parentd0166334ba9997b5eed89d6f54c99f7bfbe9c816 (diff)
downloadgitlab-ce-c0e614d1c46cd273f83385ef61c76200d492d0a4.tar.gz
Rename variable
-rw-r--r--app/views/projects/branches/new.html.haml4
-rw-r--r--app/views/projects/tags/new.html.haml4
2 files changed, 4 insertions, 4 deletions
diff --git a/app/views/projects/branches/new.html.haml b/app/views/projects/branches/new.html.haml
index 11567fc4393..31943a2407a 100644
--- a/app/views/projects/branches/new.html.haml
+++ b/app/views/projects/branches/new.html.haml
@@ -24,9 +24,9 @@
= link_to 'Cancel', namespace_project_branches_path(@project.namespace, @project), class: 'btn btn-cancel'
:javascript
- var availableTags = #{@project.repository.ref_names.to_json};
+ var availableRefs = #{@project.repository.ref_names.to_json};
$("#ref").autocomplete({
- source: availableTags,
+ source: availableRefs,
minLength: 1
});
diff --git a/app/views/projects/tags/new.html.haml b/app/views/projects/tags/new.html.haml
index 58d2e5c7136..9c9bfa3f55f 100644
--- a/app/views/projects/tags/new.html.haml
+++ b/app/views/projects/tags/new.html.haml
@@ -38,9 +38,9 @@
= link_to 'Cancel', namespace_project_tags_path(@project.namespace, @project), class: 'btn btn-cancel'
:javascript
- var availableTags = #{@project.repository.ref_names.to_json};
+ var availableRefs = #{@project.repository.ref_names.to_json};
$("#ref").autocomplete({
- source: availableTags,
+ source: availableRefs,
minLength: 1
});