mirror of
https://github.com/bestnite/sub2clash.git
synced 2025-07-06 21:02:34 +08:00
u
This commit is contained in:
@ -1,11 +1,9 @@
|
|||||||
function setInputReadOnly(input, readonly) {
|
function setInputReadOnly(input, readonly) {
|
||||||
if (readonly) {
|
if (readonly) {
|
||||||
input.readOnly = true;
|
input.readOnly = true;
|
||||||
input.classList.add('bg-light');
|
|
||||||
input.style.cursor = 'not-allowed';
|
input.style.cursor = 'not-allowed';
|
||||||
} else {
|
} else {
|
||||||
input.readOnly = false;
|
input.readOnly = false;
|
||||||
input.classList.remove('bg-light');
|
|
||||||
input.style.cursor = 'auto';
|
input.style.cursor = 'auto';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user