diff options
author | Alfredo Sumaran <alfredo@gitlab.com> | 2016-08-04 02:00:00 -0500 |
---|---|---|
committer | Alfredo Sumaran <alfredo@gitlab.com> | 2016-08-05 17:19:01 -0500 |
commit | 416d21987e77479eb95ce51c09ea8d07800e30c9 (patch) | |
tree | fb3f1ab6a2402bb2205cf7386f5661d49bf07d64 /app | |
parent | 3f399fe1817264246f978f542083962319ed0a82 (diff) | |
download | gitlab-ce-416d21987e77479eb95ce51c09ea8d07800e30c9.tar.gz |
Move classes into its own file
Diffstat (limited to 'app')
-rw-r--r-- | app/assets/javascripts/protected_branch_dropdown.js.es6 (renamed from app/assets/javascripts/protected_branch_select.js.es6) | 13 | ||||
-rw-r--r-- | app/assets/javascripts/protected_branch_dropdowns.js.es6 | 12 |
2 files changed, 12 insertions, 13 deletions
diff --git a/app/assets/javascripts/protected_branch_select.js.es6 b/app/assets/javascripts/protected_branch_dropdown.js.es6 index e4881eea222..35eaa18c86d 100644 --- a/app/assets/javascripts/protected_branch_select.js.es6 +++ b/app/assets/javascripts/protected_branch_dropdown.js.es6 @@ -73,16 +73,3 @@ class ProtectedBranchDropdown { this.$dropdownFooter.toggleClass('hidden', !branchName); } } - -class ProtectedBranchDropdowns { - constructor(options) { - const { $dropdowns, onSelect } = options; - - $dropdowns.each((i, el) => { - new ProtectedBranchDropdown({ - $dropdown: $(el), - onSelect: onSelect - }); - }); - } - } diff --git a/app/assets/javascripts/protected_branch_dropdowns.js.es6 b/app/assets/javascripts/protected_branch_dropdowns.js.es6 new file mode 100644 index 00000000000..51df4b02026 --- /dev/null +++ b/app/assets/javascripts/protected_branch_dropdowns.js.es6 @@ -0,0 +1,12 @@ +class ProtectedBranchDropdowns { + constructor(options) { + const { $dropdowns, onSelect } = options; + + $dropdowns.each((i, el) => { + new ProtectedBranchDropdown({ + $dropdown: $(el), + onSelect: onSelect + }); + }); + } + } |