summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/protected_branches/protected_branch_edit_list.js
blob: 336fa6c57a7643c59dbcf0235be4adedb6eb4fb4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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);