From 8acf7b45f36751911695a8e96372b603f6e03328 Mon Sep 17 00:00:00 2001 From: Galip Tolga Erdem Date: Wed, 24 Jun 2020 18:13:27 +0300 Subject: [PATCH] removed jq from loggedOut.js --- .../Volo.Abp.Account.Web/Pages/Account/LoggedOut.cshtml | 2 +- .../src/Volo.Abp.Account.Web/Pages/Account/LoggedOut.js | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/modules/account/src/Volo.Abp.Account.Web/Pages/Account/LoggedOut.cshtml b/modules/account/src/Volo.Abp.Account.Web/Pages/Account/LoggedOut.cshtml index 3e3e9857a1..0e7b14236a 100644 --- a/modules/account/src/Volo.Abp.Account.Web/Pages/Account/LoggedOut.cshtml +++ b/modules/account/src/Volo.Abp.Account.Web/Pages/Account/LoggedOut.cshtml @@ -21,7 +21,7 @@ @L["LoggedOutText"] @if (Model.PostLogoutRedirectUri != null) { - @L["ReturnToText", Model.ClientName] + @L["ReturnToText", Model.ClientName] } @if (Model.SignOutIframeUrl != null) { diff --git a/modules/account/src/Volo.Abp.Account.Web/Pages/Account/LoggedOut.js b/modules/account/src/Volo.Abp.Account.Web/Pages/Account/LoggedOut.js index 6341b27ea7..950bf65719 100644 --- a/modules/account/src/Volo.Abp.Account.Web/Pages/Account/LoggedOut.js +++ b/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) +});