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
dc996051
Commit
dc996051
authored
Jan 30, 2018
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cache jQuery selector
parent
2b66879e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
app/assets/javascripts/issuable_index.js
app/assets/javascripts/issuable_index.js
+7
-5
No files found.
app/assets/javascripts/issuable_index.js
View file @
dc996051
...
@@ -23,21 +23,23 @@ export default class IssuableIndex {
...
@@ -23,21 +23,23 @@ export default class IssuableIndex {
}
}
static
resetIncomingEmailToken
()
{
static
resetIncomingEmailToken
()
{
$
(
'
.incoming-email-token-reset
'
).
on
(
'
click
'
,
(
e
)
=>
{
const
$resetToken
=
$
(
'
.incoming-email-token-reset
'
);
$resetToken
.
on
(
'
click
'
,
(
e
)
=>
{
e
.
preventDefault
();
e
.
preventDefault
();
$
(
'
.incoming-email-token-reset
'
)
.
text
(
'
resetting...
'
);
$
resetToken
.
text
(
'
resetting...
'
);
axios
.
put
(
$
(
'
.incoming-email-token-reset
'
)
.
attr
(
'
href
'
))
axios
.
put
(
$
resetToken
.
attr
(
'
href
'
))
.
then
(({
data
})
=>
{
.
then
(({
data
})
=>
{
$
(
'
#issuable_email
'
).
val
(
data
.
new_address
).
focus
();
$
(
'
#issuable_email
'
).
val
(
data
.
new_address
).
focus
();
$
(
'
.incoming-email-token-reset
'
)
.
text
(
'
reset it
'
);
$
resetToken
.
text
(
'
reset it
'
);
})
})
.
catch
(()
=>
{
.
catch
(()
=>
{
flash
(
__
(
'
There was an error when reseting email token.
'
));
flash
(
__
(
'
There was an error when reseting email token.
'
));
$
(
'
.incoming-email-token-reset
'
)
.
text
(
'
reset it
'
);
$
resetToken
.
text
(
'
reset it
'
);
});
});
});
});
}
}
...
...
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