summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/protected_branches/protected_branch_edit_list.js.es6
diff options
context:
space:
mode:
authorAlfredo Sumaran <alfredo@gitlab.com>2016-10-14 17:25:12 -0500
committerAlfredo Sumaran <alfredo@gitlab.com>2016-10-20 12:03:30 -0500
commit3bace66970ff5cd71107f24511447d8c5a72715f (patch)
tree591ac3d3e04ae98ce98f74281180e8f1d944f16f /app/assets/javascripts/protected_branches/protected_branch_edit_list.js.es6
parentde12e6f0c4689155d049b56d97625627379a40b7 (diff)
downloadgitlab-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.es617
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);