Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
fe71edc3
Commit
fe71edc3
authored
Sep 05, 2016
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
JS update
parent
e747626f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
9 deletions
+11
-9
app/assets/javascripts/members.js.es6
app/assets/javascripts/members.js.es6
+11
-9
No files found.
app/assets/javascripts/members.js.es6
View file @
fe71edc3
...
...
@@ -15,14 +15,8 @@
addListeners() {
$('.project_member, .group_member').on('ajax:success', this.removeRow);
$('.js-member-update-control').on('change', function () {
$(this).closest('form')
.trigger("submit.rails");
$(this).disable();
});
$('.js-edit-member-form').on('ajax:success', function () {
$(this).find('.js-member-update-control').enable();
});
$('.js-member-update-control').on('change', this.formSubmit);
$('.js-edit-member-form').on('ajax:success', this.formSuccess);
}
removeRow(e) {
...
...
@@ -36,8 +30,16 @@
}
}
submitForm() {
formSubmit() {
const $this = $(this);
$this.disable()
.closest('form')
.trigger("submit.rails");
}
formSuccess() {
$(this).find('.js-member-update-control').enable();
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment