diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-12-24 03:10:25 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-12-24 03:10:25 +0300 |
commit | b2e2c43b3c5aebf47d7f6114b172551e4fa97e58 (patch) | |
tree | 5358eb8e4b7fa85f87f13524ab520b460a62ce24 /app/assets/javascripts/jira_connect | |
parent | 5838993b5f3e2d861d9dd7c82dfeea71506b9fc2 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/assets/javascripts/jira_connect')
-rw-r--r-- | app/assets/javascripts/jira_connect/index.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/app/assets/javascripts/jira_connect/index.js b/app/assets/javascripts/jira_connect/index.js index e7aa4c437bb..cc18d67aebd 100644 --- a/app/assets/javascripts/jira_connect/index.js +++ b/app/assets/javascripts/jira_connect/index.js @@ -27,7 +27,7 @@ const initJiraFormHandlers = () => { alert(error); }; - AP.getLocation(location => { + AP.getLocation((location) => { $('.js-jira-connect-sign-in').each(function updateSignInLink() { const updatedLink = `${$(this).attr('href')}?return_to=${location}`; $(this).attr('href', updatedLink); @@ -38,7 +38,7 @@ const initJiraFormHandlers = () => { const actionUrl = $(this).attr('action'); e.preventDefault(); - AP.context.getToken(token => { + AP.context.getToken((token) => { // eslint-disable-next-line no-jquery/no-ajax $.post(actionUrl, { jwt: token, @@ -46,7 +46,7 @@ const initJiraFormHandlers = () => { format: 'json', }) .done(reqComplete) - .fail(err => reqFailed(err, 'Failed to add namespace. Please try again.')); + .fail((err) => reqFailed(err, 'Failed to add namespace. Please try again.')); }); }); @@ -54,7 +54,7 @@ const initJiraFormHandlers = () => { const href = $(this).attr('href'); e.preventDefault(); - AP.context.getToken(token => { + AP.context.getToken((token) => { // eslint-disable-next-line no-jquery/no-ajax $.ajax({ url: href, @@ -65,7 +65,7 @@ const initJiraFormHandlers = () => { }, }) .done(reqComplete) - .fail(err => reqFailed(err, 'Failed to remove namespace. Please try again.')); + .fail((err) => reqFailed(err, 'Failed to remove namespace. Please try again.')); }); }); }; |