MoK: die Funktion clacChPwPrepend in _Layout.cshtml verschoben.

This commit is contained in:
2024-03-20 17:24:11 +01:00
parent d5ab9d86ad
commit ecb9da09b6
3 changed files with 20 additions and 19 deletions

View File

@@ -313,24 +313,7 @@
showErrorPopup(error);
}
});
var initialPwPrependWidth = 0;
function calcChPwPrepend() {
try {
if (initialPwPrependWidth <= 0 && $.isNumeric(getMaxWidth("pw-prepend"))) {
initialPwPrependWidth = getMaxWidth("pw-prepend");
}
if (initialPwPrependWidth <= 0) {
return;
}
$(".pw-prepend").width(getMaxWidth("pw-prepend"));
} catch(error) {
showErrorPopup(error);
}
}
function initializeTimeInputs() {
try {
var previousStartTime = "";

View File

@@ -421,6 +421,24 @@
calcChPwPrepend();
}
var initialPwPrependWidth = 0;
function calcChPwPrepend() {
try {
if (initialPwPrependWidth <= 0 && $.isNumeric(getMaxWidth("pw-prepend"))) {
initialPwPrependWidth = getMaxWidth("pw-prepend");
}
if (initialPwPrependWidth <= 0) {
return;
}
$(".pw-prepend").width(getMaxWidth("pw-prepend"));
} catch(error) {
showErrorPopup(error);
}
}
function copyErrorToClipboard() {
var element = document.querySelector("#fehlerdetail-textarea");
element.select();