File tree Expand file tree Collapse file tree 2 files changed +1
-30
lines changed Expand file tree Collapse file tree 2 files changed +1
-30
lines changed Original file line number Diff line number Diff line change 1- import $ from 'jquery' ;
21import { checkAppUrl } from './common-global.js' ;
32
43export function initUserAuthOauth2 ( ) {
@@ -21,30 +20,3 @@ export function initUserAuthOauth2() {
2120 } ) ;
2221 }
2322}
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';
2323import { initCommentContent , initMarkupContent } from './markup/content.js' ;
2424import { initPdfViewer } from './render/pdf.js' ;
2525
26- import { initUserAuthLinkAccountView , initUserAuthOauth2 } from './features/user-auth.js' ;
26+ import { initUserAuthOauth2 } from './features/user-auth.js' ;
2727import {
2828 initRepoIssueDue ,
2929 initRepoIssueReferenceRepositorySearch ,
@@ -178,7 +178,6 @@ onDomReady(() => {
178178 initCommitStatuses ( ) ;
179179 initCaptcha ( ) ;
180180
181- initUserAuthLinkAccountView ( ) ;
182181 initUserAuthOauth2 ( ) ;
183182 initUserAuthWebAuthn ( ) ;
184183 initUserAuthWebAuthnRegister ( ) ;
You can’t perform that action at this time.
0 commit comments