2017-04-06 13:39:48 +00:00
|
|
|
/* eslint-disable no-new */
|
|
|
|
|
2017-04-06 08:47:19 +00:00
|
|
|
import ProtectedTagEdit from './protected_tag_edit';
|
2017-04-03 06:10:43 +00:00
|
|
|
|
2017-04-06 08:47:19 +00:00
|
|
|
export default class ProtectedTagEditList {
|
|
|
|
constructor() {
|
|
|
|
this.$wrap = $('.protected-tags-list');
|
|
|
|
this.initEditForm();
|
|
|
|
}
|
2017-04-03 06:10:43 +00:00
|
|
|
|
2017-04-06 08:47:19 +00:00
|
|
|
initEditForm() {
|
|
|
|
this.$wrap.find('.js-protected-tag-edit-form').each((i, el) => {
|
2017-04-06 13:39:48 +00:00
|
|
|
new ProtectedTagEdit({
|
2017-04-06 08:47:19 +00:00
|
|
|
$wrap: $(el),
|
2017-04-03 06:10:43 +00:00
|
|
|
});
|
2017-04-06 08:47:19 +00:00
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|