这个提交包含在:
WaitSpring 2022-06-05 02:39:21 +08:00
当前提交 33eb6722a1
共有 1 个文件被更改,包括 13 次插入15 次删除

查看文件

@ -1,15 +1,13 @@
/**
* JavaScript file for performing some interactive and client-side validation of
* the password fields on the registration form to avoid some user frustration,
* especially on mobile devices.
*
* @file
* @copyright Copyright © 2022- Qiuwen Baike Contributors
*/
// Mandatory check
(function () {
var a = document.getElementById("wpLoginAttempt") && !document.getElementById("wpOATHToken") || document.getElementById("wpCreateaccount");
a && (a.disabled = !0, document.getElementById("mw-input-wpTermsOfService").addEventListener("change", function () {
a.disabled = !0 === document.getElementById("mw-input-wpTermsOfService").checked ? !1 : !0;
}));
})();
/**
* JavaScript file for performing some interactive and client-side validation.
* @file
* @copyright Copyright © 2022- Qiuwen Baike Contributors
*/
// Mandatory check
(function () {
var a = document.getElementById("mw-input-wpTermsOfService") ? document.getElementById("wpLoginAttempt") || document.getElementById("wpCreateaccount") : false;
a && (a.disabled = !0, document.getElementById("mw-input-wpTermsOfService").checked = !1, document.getElementById("mw-input-wpTermsOfService").addEventListener("change", function () {
a.disabled = !0 === document.getElementById("mw-input-wpTermsOfService").checked ? !1 : !0;
}));
})();