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
510903c0
Commit
510903c0
authored
Jul 24, 2017
by
kushalpandya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update selector it use JS-only class
parent
f0fb9d0a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
app/assets/javascripts/protected_branches/ee/protected_branch_create.js
...ascripts/protected_branches/ee/protected_branch_create.js
+1
-1
spec/support/protected_branch_helpers.rb
spec/support/protected_branch_helpers.rb
+1
-1
No files found.
app/assets/javascripts/protected_branches/ee/protected_branch_create.js
View file @
510903c0
...
...
@@ -18,7 +18,7 @@
gl
.
ProtectedBranchCreate
=
class
{
constructor
()
{
this
.
$wrap
=
this
.
$form
=
$
(
'
#new_protected_
branch
'
);
this
.
$wrap
=
this
.
$form
=
$
(
'
.js-new-protected-
branch
'
);
this
.
buildDropdowns
();
this
.
$branchInput
=
this
.
$wrap
.
find
(
'
input[name="protected_branch[name]"]
'
);
this
.
bindEvents
();
...
...
spec/support/protected_branch_helpers.rb
View file @
510903c0
module
ProtectedBranchHelpers
def
set_allowed_to
(
operation
,
option
=
'Masters'
,
form:
'
#new_protected_
branch'
)
def
set_allowed_to
(
operation
,
option
=
'Masters'
,
form:
'
.js-new-protected-
branch'
)
within
form
do
find
(
".js-allowed-to-
#{
operation
}
"
).
trigger
(
'click'
)
wait_for_requests
...
...
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