diff options
author | Kushal Pandya <kushal@gitlab.com> | 2017-04-03 11:40:43 +0530 |
---|---|---|
committer | Kushal Pandya <kushal@gitlab.com> | 2017-04-03 11:40:43 +0530 |
commit | 551dea7efe11c55799e4a0cacd9c75988ef9583b (patch) | |
tree | 1d5161b168205ff066c70d41c7270c9a740310dd /app/assets/javascripts/protected_tags | |
parent | 85e1fa8e21c73746bb6f6270a658453a230bb9a2 (diff) | |
download | gitlab-ce-551dea7efe11c55799e4a0cacd9c75988ef9583b.tar.gz |
Protected Tags List initializer
Diffstat (limited to 'app/assets/javascripts/protected_tags')
-rw-r--r-- | app/assets/javascripts/protected_tags/protected_tag_edit_list.js | 18 |
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); |