diff --git a/src/admin/dialog/select_soft.php b/src/admin/dialog/select_soft.php index 93e88eaa..f84b3aca 100644 --- a/src/admin/dialog/select_soft.php +++ b/src/admin/dialog/select_soft.php @@ -62,6 +62,8 @@ a{text-decoration:none!important} function ReturnValue(reimg) { if (window.opener.document. != null) { window.opener.document..value = reimg; + window.close(); + return } var funcNum = ; if (window.opener.CKEDITOR != null && funcNum != 1) { diff --git a/src/admin/js/indexbody.js b/src/admin/js/indexbody.js index 35328e06..4ecd574f 100644 --- a/src/admin/js/indexbody.js +++ b/src/admin/js/indexbody.js @@ -14,6 +14,26 @@ function ShowWaitDiv() { $DE('loaddiv').style.display = 'block'; return true; } +function DedeCopyToClipboard(text) { + if (navigator.clipboard) { + navigator.clipboard.writeText(text); + } else { + var textarea = document.createElement('textarea'); + document.body.appendChild(textarea); + // 隐藏此输入框 + textarea.style.position = 'fixed'; + textarea.style.clip = 'rect(0 0 0 0)'; + textarea.style.top = '10px'; + textarea.style.display = 'none'; + textarea.value = text; + textarea.select(); + document.execCommand('copy', true); + document.body.removeChild(textarea); + } +} +function CopySystemInfo(txt) { + DedeCopyToClipboard(txt); +} $(function () { $.get("index_testenv.php", function (data) { if (data !== '') { diff --git a/src/admin/templets/index_body.htm b/src/admin/templets/index_body.htm index 65e09922..ab673c7f 100644 --- a/src/admin/templets/index_body.htm +++ b/src/admin/templets/index_body.htm @@ -69,7 +69,7 @@ table.stattable td{padding:.6rem;border-bottom:1px solid #dee2e6;text-align:righ