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 @@
    - -