Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Schatz <jschatz1@gmail.com>2017-08-05 23:03:48 +0300
committerJacob Schatz <jschatz1@gmail.com>2017-08-05 23:03:48 +0300
commit44d97d944f8e6200a396e763333e8fa004aeee8b (patch)
tree98049a23073650caf703e1a15d51adb1cfa86d18 /app/assets/javascripts/gl_dropdown.js
parentcc958b4afd48dbc4e17802ab819657e9df26e9fb (diff)
Get rid of hard coded new branch
Diffstat (limited to 'app/assets/javascripts/gl_dropdown.js')
-rw-r--r--app/assets/javascripts/gl_dropdown.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/assets/javascripts/gl_dropdown.js b/app/assets/javascripts/gl_dropdown.js
index 915b06e73ee..65916b4d04d 100644
--- a/app/assets/javascripts/gl_dropdown.js
+++ b/app/assets/javascripts/gl_dropdown.js
@@ -30,7 +30,7 @@ GitLabDropdownInput = (function() {
}
})
.on('input', function(e) {
- var val = e.currentTarget.value || 'new-branch';
+ var val = e.currentTarget.value || _this.options.inputFieldName;
val = val.split(' ').join('-') // replaces space with dash
.replace(/[^a-zA-Z0-9 -]/g, '').toLowerCase() // replace non alphanumeric
.replace(/(-)\1+/g, '-'); // replace repeated dashes