Spiegel von
https://github.com/dani-garcia/vaultwarden.git
synchronisiert 2024-11-16 04:12:53 +01:00
Changed javascript default argument construction
Dieser Commit ist enthalten in:
Ursprung
390d10d656
Commit
84dc2eda1f
1 geänderte Dateien mit 2 neuen und 4 gelöschten Zeilen
|
@ -203,8 +203,7 @@
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
function reload() { window.location.reload(); }
|
function reload() { window.location.reload(); }
|
||||||
function msg(text, reload_page) {
|
function msg(text, reload_page = true) {
|
||||||
reload_page = (reload_page === undefined) ? true : reload_page;
|
|
||||||
text && alert(text);
|
text && alert(text);
|
||||||
reload_page && reload();
|
reload_page && reload();
|
||||||
}
|
}
|
||||||
|
@ -222,8 +221,7 @@
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
function _post(url, successMsg, errMsg, body, reload_page) {
|
function _post(url, successMsg, errMsg, body, reload_page = true) {
|
||||||
reload_page = (reload_page === undefined) ? true : reload_page;
|
|
||||||
fetch(url, {
|
fetch(url, {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
body: body,
|
body: body,
|
||||||
|
|
Laden …
In neuem Issue referenzieren