Browse Source
Merge branch 'BlackDex-fix-admin-repost'
pull/2948/head
Daniel García
2 years ago
No known key found for this signature in database
GPG Key ID: FC8A7D14C3CD543A
1 changed files with
5 additions and
1 deletions
-
src/static/templates/admin/base.hbs
|
|
@ -32,7 +32,11 @@ |
|
|
|
<script> |
|
|
|
'use strict'; |
|
|
|
|
|
|
|
function reload() { window.location.reload(); } |
|
|
|
function reload() { |
|
|
|
// Reload the page by setting the exact same href |
|
|
|
// Using window.location.reload() could cause a repost. |
|
|
|
window.location = window.location.href; |
|
|
|
} |
|
|
|
function msg(text, reload_page = true) { |
|
|
|
text && alert(text); |
|
|
|
reload_page && reload(); |
|
|
|