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

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlfredo Sumaran <alfredo@gitlab.com>2016-10-15 01:25:12 +0300
committerAlfredo Sumaran <alfredo@gitlab.com>2016-10-20 20:03:30 +0300
commit3bace66970ff5cd71107f24511447d8c5a72715f (patch)
tree591ac3d3e04ae98ce98f74281180e8f1d944f16f /app/assets/javascripts/protected_branches/protected_branch_edit_list.js.es6
parentde12e6f0c4689155d049b56d97625627379a40b7 (diff)
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);