2017-07-19 12:44:15 +00:00
|
|
|
/* eslint-disable no-new */
|
2016-12-14 03:01:05 +00:00
|
|
|
|
2018-03-09 20:18:59 +00:00
|
|
|
import $ from 'jquery';
|
2017-07-19 12:44:15 +00:00
|
|
|
import ProtectedBranchEdit from './protected_branch_edit';
|
2016-08-03 21:45:38 +00:00
|
|
|
|
2017-07-19 12:44:15 +00:00
|
|
|
export default class ProtectedBranchEditList {
|
|
|
|
constructor() {
|
|
|
|
this.$wrap = $('.protected-branches-list');
|
|
|
|
this.initEditForm();
|
|
|
|
}
|
2016-08-05 06:57:53 +00:00
|
|
|
|
2017-07-19 12:44:15 +00:00
|
|
|
initEditForm() {
|
|
|
|
this.$wrap.find('.js-protected-branch-edit-form').each((i, el) => {
|
|
|
|
new ProtectedBranchEdit({
|
|
|
|
$wrap: $(el),
|
2016-08-03 21:45:38 +00:00
|
|
|
});
|
2017-07-19 12:44:15 +00:00
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|