diff options
Diffstat (limited to 'app/assets/javascripts/protected_branches/protected_branch_edit_list.js')
-rw-r--r-- | app/assets/javascripts/protected_branches/protected_branch_edit_list.js | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/app/assets/javascripts/protected_branches/protected_branch_edit_list.js b/app/assets/javascripts/protected_branches/protected_branch_edit_list.js new file mode 100644 index 00000000000..336fa6c57a7 --- /dev/null +++ b/app/assets/javascripts/protected_branches/protected_branch_edit_list.js @@ -0,0 +1,18 @@ +/* eslint-disable arrow-parens, no-param-reassign, no-new, comma-dangle */ + +(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); |