This commit is contained in:
2025-07-05 22:57:46 +08:00
parent ff81d03492
commit 0a9892503d

View File

@ -1,11 +1,9 @@
function setInputReadOnly(input, readonly) {
if (readonly) {
input.readOnly = true;
input.classList.add('bg-light');
input.style.cursor = 'not-allowed';
} else {
input.readOnly = false;
input.classList.remove('bg-light');
input.style.cursor = 'auto';
}
}