Browse Source

removed jq from loggedOut.js

pull/4476/head
Galip Tolga Erdem 6 years ago
parent
commit
8acf7b45f3
  1. 2
      modules/account/src/Volo.Abp.Account.Web/Pages/Account/LoggedOut.cshtml
  2. 7
      modules/account/src/Volo.Abp.Account.Web/Pages/Account/LoggedOut.js

2
modules/account/src/Volo.Abp.Account.Web/Pages/Account/LoggedOut.cshtml

@ -21,7 +21,7 @@
<abp-card-text>@L["LoggedOutText"]</abp-card-text>
@if (Model.PostLogoutRedirectUri != null)
{
<a abp-button="Primary" class="redirectButton" href="@Model.PostLogoutRedirectUri">@L["ReturnToText", Model.ClientName]</a>
<a abp-button="Primary" id="redirectButton" href="@Model.PostLogoutRedirectUri">@L["ReturnToText", Model.ClientName]</a>
}
@if (Model.SignOutIframeUrl != null)
{

7
modules/account/src/Volo.Abp.Account.Web/Pages/Account/LoggedOut.js

@ -1,6 +1,5 @@
(function ($) {
//TODO:gterdem There should be an option to set the redirect delay here
document.addEventListener("DOMContentLoaded", function (event) {
setTimeout(function () {
window.location = $('.redirectButton').attr('href');
window.location = document.getElementById("redirectButton").getAttribute("href");
}, 3000)
})(JQuery)
});

Loading…
Cancel
Save