BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
bedbb7b7
Commit
bedbb7b7
authored
Oct 20, 2016
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactor js that disable form submit if no members selected
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
3608f928
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 addition
and
6 deletions
+1
-6
members.js.es6
app/assets/javascripts/members.js.es6
+1
-0
index.html.haml
app/views/groups/group_members/index.html.haml
+0
-3
index.html.haml
app/views/projects/project_members/index.html.haml
+0
-3
No files found.
app/assets/javascripts/members.js.es6
View file @
bedbb7b7
...
...
@@ -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) {
...
...
app/views/groups/group_members/index.html.haml
View file @
bedbb7b7
...
...
@@ -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'
);
app/views/projects/project_members/index.html.haml
View file @
bedbb7b7
...
...
@@ -26,6 +26,3 @@
=
render
'team'
,
members:
@project_members
=
paginate
@project_members
,
theme:
"gitlab"
:javascript
window
.
disableButtonIfEmptyField
(
'#user_ids'
,
'input[name=commit]'
,
'change'
);
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