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
0
Merge Requests
0
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
Boxiang Sun
gitlab-ce
Commits
5050bfd9
Commit
5050bfd9
authored
Jun 19, 2017
by
Timothy Andrew
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Get ESLint spec passing for the `OAuthRememberMe` class.
parent
a931ead0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
app/assets/javascripts/oauth_remember_me.js
app/assets/javascripts/oauth_remember_me.js
+6
-6
No files found.
app/assets/javascripts/oauth_remember_me.js
View file @
5050bfd9
...
...
@@ -12,17 +12,17 @@ export default class OAuthRememberMe {
}
bindEvents
()
{
this
.
container
.
on
(
'
click
'
,
this
.
toggleRememberMe
);
this
.
container
.
on
(
'
click
'
,
this
.
constructor
.
toggleRememberMe
);
}
toggleRememberMe
(
event
)
{
var
rememberMe
=
$
(
event
.
target
).
is
(
"
:checked
"
);
static
toggleRememberMe
(
event
)
{
const
rememberMe
=
$
(
event
.
target
).
is
(
'
:checked
'
);
$
(
'
.oauth-login
'
).
each
(
function
(
i
,
element
)
{
var
href
=
$
(
element
).
attr
(
'
href
'
);
$
(
'
.oauth-login
'
).
each
(
(
i
,
element
)
=>
{
const
href
=
$
(
element
).
attr
(
'
href
'
);
if
(
rememberMe
)
{
$
(
element
).
attr
(
'
href
'
,
href
+
'
?remember_me=1
'
);
$
(
element
).
attr
(
'
href
'
,
`
${
href
}
?remember_me=1`
);
}
else
{
$
(
element
).
attr
(
'
href
'
,
href
.
replace
(
'
?remember_me=1
'
,
''
));
}
...
...
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