|
|
@ -2397,6 +2397,33 @@ function initIssueReferenceRepositorySearch() { |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function initLinkAccountView() { |
|
|
|
|
|
|
|
const $lnkUserPage = $('.page-content.user.link-account'); |
|
|
|
|
|
|
|
if ($lnkUserPage.length === 0) { |
|
|
|
|
|
|
|
return false; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const $signinTab = $lnkUserPage.find('.item[data-tab="auth-link-signin-tab"]'); |
|
|
|
|
|
|
|
const $signUpTab = $lnkUserPage.find('.item[data-tab="auth-link-signup-tab"]'); |
|
|
|
|
|
|
|
const $signInView = $lnkUserPage.find('.tab[data-tab="auth-link-signin-tab"]'); |
|
|
|
|
|
|
|
const $signUpView = $lnkUserPage.find('.tab[data-tab="auth-link-signup-tab"]'); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$signUpTab.on('click', () => { |
|
|
|
|
|
|
|
$signinTab.removeClass('active'); |
|
|
|
|
|
|
|
$signInView.removeClass('active'); |
|
|
|
|
|
|
|
$signUpTab.addClass('active'); |
|
|
|
|
|
|
|
$signUpView.addClass('active'); |
|
|
|
|
|
|
|
return false; |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$signinTab.on('click', () => { |
|
|
|
|
|
|
|
$signUpTab.removeClass('active'); |
|
|
|
|
|
|
|
$signUpView.removeClass('active'); |
|
|
|
|
|
|
|
$signinTab.addClass('active'); |
|
|
|
|
|
|
|
$signInView.addClass('active'); |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
$(document).ready(async () => { |
|
|
|
$(document).ready(async () => { |
|
|
|
// Show exact time
|
|
|
|
// Show exact time
|
|
|
|
$('.time-since').each(function () { |
|
|
|
$('.time-since').each(function () { |
|
|
@ -2456,6 +2483,9 @@ $(document).ready(async () => { |
|
|
|
window.location = $(this).data('href'); |
|
|
|
window.location = $(this).data('href'); |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// link-account tab handle
|
|
|
|
|
|
|
|
initLinkAccountView(); |
|
|
|
|
|
|
|
|
|
|
|
// Dropzone
|
|
|
|
// Dropzone
|
|
|
|
const $dropzone = $('#dropzone'); |
|
|
|
const $dropzone = $('#dropzone'); |
|
|
|
if ($dropzone.length > 0) { |
|
|
|
if ($dropzone.length > 0) { |
|
|
|