summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2016-10-11 16:10:12 +0100
committerPhil Hughes <me@iamphill.com>2016-10-11 16:10:12 +0100
commit66af08df281214f59bb21e911949625024b41829 (patch)
tree4dd6b6992a5e733cf13e919cc2b25e8d9c1ead2b
parentdf3ad3fe1bd8bd94ff81a344af5eb79a018d7729 (diff)
downloadgitlab-ce-project-edit-branch-dropdown-fix.tar.gz
Fixed default branch dropdown not converting to select2project-edit-branch-dropdown-fix
Closes #23200
-rw-r--r--app/assets/javascripts/project_new.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/assets/javascripts/project_new.js b/app/assets/javascripts/project_new.js
index a787b11f2a9..3cf41505814 100644
--- a/app/assets/javascripts/project_new.js
+++ b/app/assets/javascripts/project_new.js
@@ -4,7 +4,9 @@
this.ProjectNew = (function() {
function ProjectNew() {
this.toggleSettings = bind(this.toggleSettings, this);
- this.$selects = $('.features select');
+ this.$selects = $('.features select').filter(function () {
+ return $(this).data('field');
+ });
$('.project-edit-container').on('ajax:before', (function(_this) {
return function() {