use href attribute for refreshing instead of js

pull/128/head
Aevann 2023-02-19 14:22:19 +02:00
parent 8f4ba57b6f
commit 338033df2b
4 changed files with 2 additions and 11 deletions

View File

@ -89,11 +89,6 @@ for (const element of setting_selects) {
});
}
const reload_page = document.getElementById('reload_page')
if (reload_page) {
reload_page.addEventListener('click', () => {location.reload()});
}
const TH = document.getElementsByTagName('th')
for (const element of TH) {
if (element.classList.contains("disable-sort-click"))

View File

@ -1,3 +0,0 @@
const reload_page = document.getElementById('reload_page')
if (reload_page)
reload_page.addEventListener('click', () => {location.reload()});

File diff suppressed because one or more lines are too long

View File

@ -95,7 +95,7 @@
{% endif %}
{% if g.browser in ('webview','apple') %}
<button id="reload_page" type="button" class="mobile-nav-icon d-md-none"><i class="fas fa-arrow-rotate-right align-middle text-gray-500 black"></i></button>
<a href="" type="button" class="mobile-nav-icon d-md-none"><i class="fas fa-arrow-rotate-right align-middle text-gray-500 black"></i></a>
{% endif %}
{% if v %}