-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix a number of typescript issues (#32459)
Fixes 69 typescript errors found in the `admin` and `markup` folders. --------- Co-authored-by: Giteabot <[email protected]>
- Loading branch information
1 parent
f888e45
commit f35e2b0
Showing
14 changed files
with
109 additions
and
113 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,13 @@ | ||
import $ from 'jquery'; | ||
|
||
export function initAdminEmails() { | ||
function linkEmailAction(e) { | ||
export function initAdminEmails(): void { | ||
$('.link-email-action').on('click', (e) => { | ||
const $this = $(this); | ||
$('#form-uid').val($this.data('uid')); | ||
$('#form-email').val($this.data('email')); | ||
$('#form-primary').val($this.data('primary')); | ||
$('#form-activate').val($this.data('activate')); | ||
$('#change-email-modal').modal('show'); | ||
e.preventDefault(); | ||
} | ||
$('.link-email-action').on('click', linkEmailAction); | ||
}); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.