Merge branch release/21.7.7 of zentao/zentaopms (#12419)

This commit is contained in:
刘刚
2025-11-19 12:22:29 +08:00
committed by Gitfox
3 changed files with 34 additions and 8 deletions
+32 -6
View File
@@ -10,13 +10,39 @@ window.submitConfirm = function(event)
window.copyCommand = function()
{
const command = $('#command').text();
navigator.clipboard.writeText(command).then(function()
{
zui.Messager.show({type: 'success', message: copySuccess, timeout: 1000});
}, function()
{
zui.Messager.show({type: 'danger', message: copyFail, timeout: 1000});
const $textArea = $('<textarea>', {
css: {
position: 'fixed',
top: '0',
left: '0',
width: '2em',
height: '2em',
padding: '0',
border: 'none',
outline: 'none',
boxShadow: 'none',
background: 'transparent'
},
val: command
});
$('body').append($textArea);
$textArea[0].focus();
$textArea[0].select();
try {
const successful = document.execCommand('copy');
if(successful)
{
zui.Messager.show({type: 'success', message: copySuccess, timeout: 1000});
} else {
zui.Messager.show({type: 'danger', message: copyFail, timeout: 1000});
}
} catch (err) {
zui.Messager.show({type: 'danger', message: copyFail, timeout: 1000});
}
$textArea.remove();
}
$(document).ready(function()
+1 -1
View File
@@ -61,7 +61,7 @@ $lang->upgrade->setStatusFile = '<h4>Please complete the following actions<
$lang->upgrade->selectVersion = 'Version';
$lang->upgrade->copyCommand = 'Copy';
$lang->upgrade->copySuccess = 'Copied to clipboard';
$lang->upgrade->copyFail = 'Copy failed, please copy it manually.';
$lang->upgrade->copyFail = 'Your browser does not support the copy function; please copy manually.';
$lang->upgrade->continue = 'Continue';
$lang->upgrade->noteVersion = "Select the compatible version, or it might cause data loss.";
$lang->upgrade->fromVersion = 'From';
+1 -1
View File
@@ -61,7 +61,7 @@ $lang->upgrade->setStatusFile = '<h4>升级之前请先完成下面的操
$lang->upgrade->selectVersion = '选择版本';
$lang->upgrade->copyCommand = '复制命令';
$lang->upgrade->copySuccess = '复制成功';
$lang->upgrade->copyFail = '复制失败,请手动复制';
$lang->upgrade->copyFail = '浏览器不支持复制功能,请手动复制';
$lang->upgrade->continue = '继续';
$lang->upgrade->noteVersion = "务必选择正确的版本,否则会造成数据丢失。";
$lang->upgrade->fromVersion = '原来的版本';