fix: Misfunction of wechat_qr in Social Integration (#2831)
Solve the bug issue (#2830)
This commit is contained in:
parent
3d8b29c6c7
commit
587f03a234
@ -3,11 +3,13 @@
|
||||
|
||||
<script>
|
||||
var wechatModal = document.getElementById('WeChatMod');
|
||||
var wechatBtn = document.getElementById('WeChatBtn');
|
||||
var wechatBtn = document.querySelectorAll('[id="WeChatBtn"]');
|
||||
|
||||
wechatBtn.onclick = function () {
|
||||
for (var i = 0; i < wechatBtn.length; i++) {
|
||||
wechatBtn[i].onclick = function () {
|
||||
wechatModal.style.display = 'block';
|
||||
};
|
||||
}
|
||||
|
||||
window.onclick = function (event) {
|
||||
if (event.target == wechatModal) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user