Commit 3180059 2 people authored and committed
1 parent 09111d7 commit 3180059 Copy full SHA for 3180059
File tree 2 files changed +1
-30
lines changed
2 files changed +1
-30
lines changed Original file line number Diff line number Diff line change 1
- import $ from 'jquery' ;
2
1
import { checkAppUrl } from './common-global.js' ;
3
2
4
3
export function initUserAuthOauth2 ( ) {
@@ -21,30 +20,3 @@ export function initUserAuthOauth2() {
21
20
} ) ;
22
21
}
23
22
}
24
-
25
- export function initUserAuthLinkAccountView ( ) {
26
- const $lnkUserPage = $ ( '.page-content.user.link-account' ) ;
27
- if ( $lnkUserPage . length === 0 ) {
28
- return false ;
29
- }
30
-
31
- const $signinTab = $lnkUserPage . find ( '.item[data-tab="auth-link-signin-tab"]' ) ;
32
- const $signUpTab = $lnkUserPage . find ( '.item[data-tab="auth-link-signup-tab"]' ) ;
33
- const $signInView = $lnkUserPage . find ( '.tab[data-tab="auth-link-signin-tab"]' ) ;
34
- const $signUpView = $lnkUserPage . find ( '.tab[data-tab="auth-link-signup-tab"]' ) ;
35
-
36
- $signUpTab . on ( 'click' , ( ) => {
37
- $signinTab . removeClass ( 'active' ) ;
38
- $signInView . removeClass ( 'active' ) ;
39
- $signUpTab . addClass ( 'active' ) ;
40
- $signUpView . addClass ( 'active' ) ;
41
- return false ;
42
- } ) ;
43
-
44
- $signinTab . on ( 'click' , ( ) => {
45
- $signUpTab . removeClass ( 'active' ) ;
46
- $signUpView . removeClass ( 'active' ) ;
47
- $signinTab . addClass ( 'active' ) ;
48
- $signInView . addClass ( 'active' ) ;
49
- } ) ;
50
- }
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ import {initFindFileInRepo} from './features/repo-findfile.js';
23
23
import { initCommentContent , initMarkupContent } from './markup/content.js' ;
24
24
import { initPdfViewer } from './render/pdf.js' ;
25
25
26
- import { initUserAuthLinkAccountView , initUserAuthOauth2 } from './features/user-auth.js' ;
26
+ import { initUserAuthOauth2 } from './features/user-auth.js' ;
27
27
import {
28
28
initRepoIssueDue ,
29
29
initRepoIssueReferenceRepositorySearch ,
@@ -178,7 +178,6 @@ onDomReady(() => {
178
178
initCommitStatuses ( ) ;
179
179
initCaptcha ( ) ;
180
180
181
- initUserAuthLinkAccountView ( ) ;
182
181
initUserAuthOauth2 ( ) ;
183
182
initUserAuthWebAuthn ( ) ;
184
183
initUserAuthWebAuthnRegister ( ) ;
You can’t perform that action at this time.
0 commit comments