fix bug: a is not DOM element
这个提交包含在:
父节点
03c0cf9b13
当前提交
ad83f8aeb5
|
@ -1,15 +1,16 @@
|
|||
/**
|
||||
* 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 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("wpOATHToken") ? document.getElementById("wpLoginAttempt") || document.getElementById("wpCreateaccount") : false;
|
||||
a && (a.disabled = !0, document.getElementById("mw-input-wpTermsOfService").addEventListener("change", function () {
|
||||
a.disabled = !0 === document.getElementById("mw-input-wpTermsOfService").checked ? !1 : !0;
|
||||
}));
|
||||
})();
|
||||
|
|
正在加载...
在新工单中引用