From d3b167c6ae5c426f0cf0aed860ba0ec7be075fbf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8F=99=E8=BF=B0=E3=80=81=E5=88=AB=E7=A6=BB?= <2449271624@qq.com> Date: Tue, 19 Sep 2023 10:50:04 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E9=99=A4=E5=8A=A0=E8=BD=BD=E5=9B=BE?= =?UTF-8?q?=E6=A0=87=E9=87=87=E7=94=A8icon?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/admin/dialog/select_mimages.php | 380 +++++++++++++------------ src/admin/js/album.js | 1 - src/admin/js/main.js | 2 - src/admin/sys_safetest.php | 2 +- src/admin/templets/module_main.htm | 1 - src/admin/templets/stepselect_main.htm | 25 +- src/admin/templets/sys_safetest.htm | 8 +- src/static/web/img/loadinglit.gif | Bin 11215 -> 0 bytes 8 files changed, 201 insertions(+), 218 deletions(-) delete mode 100644 src/static/web/img/loadinglit.gif diff --git a/src/admin/dialog/select_mimages.php b/src/admin/dialog/select_mimages.php index cc3937bf..8a4af581 100644 --- a/src/admin/dialog/select_mimages.php +++ b/src/admin/dialog/select_mimages.php @@ -5,209 +5,211 @@ include(DEDEDATA.'/mark/inc_photowatermark_config.php'); - - - - - - - 插入多图 - - + + + + + + + 插入多图 + + + + -
-
- - - - +
+
+ + + + +
+
    - -
    - + e.target.innerText='上传中'; + upAllFiles(0); + } + }); + var observ_flist = new MutationObserver( (muList,observe) => { + if (muList[0].addedNodes.length > 0) { + muList[0].addedNodes.forEach((el) => { + el.querySelector('.remove').addEventListener('click',(e) => { + var li = e.target.parentNode.parentNode; + var n = li.getAttribute('data-num'); + var el = document.querySelectorAll('#file_list li')[n]; + el.parentNode.removeChild(el); + axupimgs.res.splice(n,1); + }); + }); + } + reSort(); + }); + observ_flist.observe(document.querySelector('#file_list'),{childList:true}); + \ No newline at end of file diff --git a/src/admin/js/album.js b/src/admin/js/album.js index 744a42ff..468b3ee6 100644 --- a/src/admin/js/album.js +++ b/src/admin/js/album.js @@ -61,7 +61,6 @@ function seePicNewAlb(f, imgdid, frname, hpos, acname) { newobj.style.top = hpos; newobj.style.left = 100; document.body.appendChild(newobj); - newobj.innerHTML = ''; } newobj.style.display = "block"; nForm.action = acname; diff --git a/src/admin/js/main.js b/src/admin/js/main.js index 720777d9..651ebd55 100644 --- a/src/admin/js/main.js +++ b/src/admin/js/main.js @@ -38,7 +38,6 @@ function SeePicNew(f, imgdid, frname, hpos, acname) { newobj.style.left = 100; newobj.style.display = "block"; document.body.appendChild(newobj); - newobj.innerHTML = ''; } newobj.style.display = "block"; nForm.action = acname; @@ -252,7 +251,6 @@ function LoadQuickDiv(e, surl, oname, w, h) { newobj.style.left = "50%"; newobj.style.display = "block"; newobj.style.transform = "translate(-50%, -201px)"; - newobj.innerHTML = ''; fetch(surl).then(resp => resp.text()).then((d) => { newobj.innerHTML = d; }); diff --git a/src/admin/sys_safetest.php b/src/admin/sys_safetest.php index ac7b63ab..14e3fd1c 100644 --- a/src/admin/sys_safetest.php +++ b/src/admin/sys_safetest.php @@ -46,7 +46,7 @@ function TestOneFile($f) if ($localFilehash === $remoteFilehash) { return 0; } - $message .= "
    发现可疑文件:{$trfile} 查看 修改 删除
    \r\n"; + $message .= "

    发现可疑文件:{$trfile} 查看 修改 删除

    \r\n"; return 1; } return 0; diff --git a/src/admin/templets/module_main.htm b/src/admin/templets/module_main.htm index 273055c8..55ab6b12 100644 --- a/src/admin/templets/module_main.htm +++ b/src/admin/templets/module_main.htm @@ -12,7 +12,6 @@ -
    - +
    diff --git a/src/admin/templets/sys_safetest.htm b/src/admin/templets/sys_safetest.htm index 364ee5b5..0c5eeea1 100644 --- a/src/admin/templets/sys_safetest.htm +++ b/src/admin/templets/sys_safetest.htm @@ -40,16 +40,13 @@
    - -