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
738789d2
Commit
738789d2
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
15dba34c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
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 @
738789d2
...
...
@@ -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