Skip to content

Commit 0220604

Browse files
authored
Disabled the ability to click on the element "input.disabled" (skin.js)
1 parent 182360f commit 0220604

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

web/skins/classic/js/skin.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2106,6 +2106,13 @@ function initPageGeneral() {
21062106
}
21072107
});
21082108
});
2109+
2110+
document.querySelectorAll('input.disabled').forEach(function(el) {
2111+
el.addEventListener("click", function clickInputDisabled(event) {
2112+
event.preventDefault();
2113+
return;
2114+
});
2115+
});
21092116
}
21102117

21112118
$j( window ).on("load", initPageGeneral);

0 commit comments

Comments
 (0)