2017-09-10 17:25:29 +05:30
|
|
|
/* eslint-disable no-new */
|
2017-08-17 22:00:37 +05:30
|
|
|
|
2018-05-09 12:01:36 +05:30
|
|
|
import $ from 'jquery';
|
2017-09-10 17:25:29 +05:30
|
|
|
import ProtectedBranchEdit from './protected_branch_edit';
|
2016-09-13 17:45:13 +05:30
|
|
|
|
2017-09-10 17:25:29 +05:30
|
|
|
export default class ProtectedBranchEditList {
|
|
|
|
constructor() {
|
|
|
|
this.$wrap = $('.protected-branches-list');
|
|
|
|
this.initEditForm();
|
|
|
|
}
|
2016-09-13 17:45:13 +05:30
|
|
|
|
2017-09-10 17:25:29 +05:30
|
|
|
initEditForm() {
|
|
|
|
this.$wrap.find('.js-protected-branch-edit-form').each((i, el) => {
|
|
|
|
new ProtectedBranchEdit({
|
|
|
|
$wrap: $(el),
|
2016-09-13 17:45:13 +05:30
|
|
|
});
|
2017-09-10 17:25:29 +05:30
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|