BigW Consortium Gitlab

Commit bedbb7b7 by Dmitriy Zaporozhets

Refactor js that disable form submit if no members selected

parent 3608f928
......@@ -10,6 +10,7 @@
$('.project_member, .group_member').off('ajax:success').on('ajax:success', this.removeRow);
$('.js-member-update-control').off('change').on('change', this.formSubmit);
$('.js-edit-member-form').off('ajax:success').on('ajax:success', this.formSuccess);
disableButtonIfEmptyField('#user_ids', 'input[name=commit]', 'change');
}
removeRow(e) {
......
......@@ -29,6 +29,3 @@
%ul.content-list
= render partial: 'shared/members/member', collection: @members, as: :member
= paginate @members, theme: 'gitlab'
:javascript
window.disableButtonIfEmptyField('#user_ids', 'input[name=commit]', 'change');
......@@ -26,6 +26,3 @@
= render 'team', members: @project_members
= paginate @project_members, theme: "gitlab"
:javascript
window.disableButtonIfEmptyField('#user_ids', 'input[name=commit]', 'change');
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment