fix: jquery button disable bug

This commit is contained in:
lifeadventurer
2023-11-23 11:15:06 +08:00
parent 79b0c3517d
commit ded1f61a28

View File

@@ -142,9 +142,7 @@ function Appear() {
$('#r-2-event').show();
$('#r-2-desc').show();
// disable the btn
$('#btn').click(() => {
$(this).prop('disabled', true);
});
$('#btn').attr("disabled", "disabled");
// transform ip to four numbers
let num = ip.split(".").map(num => parseInt(num));