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:
authorKushal Pandya <kushal@gitlab.com>2017-04-03 09:10:43 +0300
committerKushal Pandya <kushal@gitlab.com>2017-04-03 09:10:43 +0300
commit551dea7efe11c55799e4a0cacd9c75988ef9583b (patch)
tree1d5161b168205ff066c70d41c7270c9a740310dd /app/assets/javascripts/protected_tags
parent85e1fa8e21c73746bb6f6270a658453a230bb9a2 (diff)
Protected Tags List initializer
Diffstat (limited to 'app/assets/javascripts/protected_tags')
-rw-r--r--app/assets/javascripts/protected_tags/protected_tag_edit_list.js18
1 files changed, 18 insertions, 0 deletions
diff --git a/app/assets/javascripts/protected_tags/protected_tag_edit_list.js b/app/assets/javascripts/protected_tags/protected_tag_edit_list.js
new file mode 100644
index 00000000000..ba40c227ef4
--- /dev/null
+++ b/app/assets/javascripts/protected_tags/protected_tag_edit_list.js
@@ -0,0 +1,18 @@
+/* eslint-disable arrow-parens, no-param-reassign, no-new, comma-dangle */
+
+(global => {
+ global.gl = global.gl || {};
+
+ gl.ProtectedTagEditList = class {
+ constructor() {
+ this.$wrap = $('.protected-tags-list');
+
+ // Build edit forms
+ this.$wrap.find('.js-protected-tag-edit-form').each((i, el) => {
+ new gl.ProtectedTagEdit({
+ $wrap: $(el)
+ });
+ });
+ }
+ };
+})(window);