Welcome to mirror list, hosted at ThFree Co, Russian Federation.

protected_branch_edit_list.js.es6 « protected_branches « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: f044e1c70b014a60be602f9a262ecc3e4174503c (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-irregular-whitespace, no-new, comma-dangle, max-len */

(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);