diff options
author | Alfredo Sumaran <alfredo@gitlab.com> | 2016-10-14 17:25:12 -0500 |
---|---|---|
committer | Alfredo Sumaran <alfredo@gitlab.com> | 2016-10-20 12:03:30 -0500 |
commit | 3bace66970ff5cd71107f24511447d8c5a72715f (patch) | |
tree | 591ac3d3e04ae98ce98f74281180e8f1d944f16f /app/assets/javascripts/protected_branches/protected_branch_edit_list.js.es6 | |
parent | de12e6f0c4689155d049b56d97625627379a40b7 (diff) | |
download | gitlab-ce-3bace66970ff5cd71107f24511447d8c5a72715f.tar.gz |
Create protected branches bundle
Diffstat (limited to 'app/assets/javascripts/protected_branches/protected_branch_edit_list.js.es6')
-rw-r--r-- | app/assets/javascripts/protected_branches/protected_branch_edit_list.js.es6 | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/app/assets/javascripts/protected_branches/protected_branch_edit_list.js.es6 b/app/assets/javascripts/protected_branches/protected_branch_edit_list.js.es6 new file mode 100644 index 00000000000..9ff0fd12c76 --- /dev/null +++ b/app/assets/javascripts/protected_branches/protected_branch_edit_list.js.es6 @@ -0,0 +1,17 @@ +(global => { + global.gl = global.gl || {}; + + gl.ProtectedBranchEditList = class { + constructor() { + this.$wrap = $('.protected-branches-list'); + + // Build edit forms + this.$wrap.find('.js-protected-branch-edit-form').each((i, el) => { + new gl.ProtectedBranchEdit({ + $wrap: $(el) + }); + }); + } + } + +})(window); |