summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/members.js
diff options
context:
space:
mode:
authorBob Van Landuyt <bob@vanlanduyt.co>2017-11-13 08:58:20 +0100
committerBob Van Landuyt <bob@vanlanduyt.co>2017-11-13 09:42:49 +0100
commita591b1c3aca8587f4f3764fa01cd19f3372bb23f (patch)
tree112c412ee5fc69448cefc4cca9875cac121c5a6e /app/assets/javascripts/members.js
parent65faebb95556809c5858347f1c24422505056827 (diff)
downloadgitlab-ce-a591b1c3aca8587f4f3764fa01cd19f3372bb23f.tar.gz
Don't perform a JS request when deleting a membership.bvl-refresh-member-listing-on-removal
Diffstat (limited to 'app/assets/javascripts/members.js')
-rw-r--r--app/assets/javascripts/members.js12
1 files changed, 0 insertions, 12 deletions
diff --git a/app/assets/javascripts/members.js b/app/assets/javascripts/members.js
index 6264750a4fb..52315e969d1 100644
--- a/app/assets/javascripts/members.js
+++ b/app/assets/javascripts/members.js
@@ -5,7 +5,6 @@ export default class Members {
}
addListeners() {
- $('.project_member, .group_member').off('ajax:success').on('ajax:success', this.removeRow);
$('.js-member-update-control').off('change').on('change', this.formSubmit.bind(this));
$('.js-edit-member-form').off('ajax:success').on('ajax:success', this.formSuccess.bind(this));
gl.utils.disableButtonIfEmptyField('#user_ids', 'input[name=commit]', 'change');
@@ -33,17 +32,6 @@ export default class Members {
});
});
}
- // eslint-disable-next-line class-methods-use-this
- removeRow(e) {
- const $target = $(e.target);
-
- if ($target.hasClass('btn-remove')) {
- $target.closest('.member')
- .fadeOut(function fadeOutMemberRow() {
- $(this).remove();
- });
- }
- }
formSubmit(e, $el = null) {
const $this = e ? $(e.currentTarget) : $el;