This is an automated email from the ASF dual-hosted git repository. humbedooh pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-ponymail-foal.git
commit e4299825d623e47f7b657b744ad9ccd5fb564594 Author: Daniel Gruno <[email protected]> AuthorDate: Mon Sep 7 13:46:29 2020 +0200 override parent div click lock --- webui/js/ponymail.js | 2 +- webui/js/source/preferences.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/webui/js/ponymail.js b/webui/js/ponymail.js index 5e4ed34..48a1f59 100644 --- a/webui/js/ponymail.js +++ b/webui/js/ponymail.js @@ -2472,7 +2472,7 @@ function init_preferences(state, json) { let eml = document.getElementById('emails'); eml.innerText = "We couldn't find this list. It may not exist or require you to be logged in with specific credentials."; eml.inject(new HTML('br')); - eml.inject(new HTML('a', {href: 'oauth.html'}, "Click here to log in via OAuth")); + eml.inject(new HTML('a', {href: 'oauth.html', onclick:'location.href="oauth.html";'}, "Click here to log in via OAuth")); } else { console.log(current_domain); let first_list = Object.keys(json.lists[current_domain])[0]; diff --git a/webui/js/source/preferences.js b/webui/js/source/preferences.js index 7e950ae..8445379 100644 --- a/webui/js/source/preferences.js +++ b/webui/js/source/preferences.js @@ -75,7 +75,7 @@ function init_preferences(state, json) { let eml = document.getElementById('emails'); eml.innerText = "We couldn't find this list. It may not exist or require you to be logged in with specific credentials."; eml.inject(new HTML('br')); - eml.inject(new HTML('a', {href: 'oauth.html'}, "Click here to log in via OAuth")); + eml.inject(new HTML('a', {href: 'oauth.html', onclick:'location.href="oauth.html";'}, "Click here to log in via OAuth")); } else { console.log(current_domain); let first_list = Object.keys(json.lists[current_domain])[0];
