diff --git a/web/views/@default/servers/certs/updatePopup.html b/web/views/@default/servers/certs/updatePopup.html index 32bb268c..f1aa7fdc 100644 --- a/web/views/@default/servers/certs/updatePopup.html +++ b/web/views/@default/servers/certs/updatePopup.html @@ -23,15 +23,15 @@ - 选择证书文件 + 输入证书内容选择证书文件 - +

[输入内容上传文件]。文件内容中通常含有"-----BEGIN CERTIFICATE-----"类似的信息。

- 选择私钥文件 + 输入私钥内容选择私钥文件 diff --git a/web/views/@default/servers/certs/updatePopup.js b/web/views/@default/servers/certs/updatePopup.js index 7d1f2a2d..7b59a9be 100644 --- a/web/views/@default/servers/certs/updatePopup.js +++ b/web/views/@default/servers/certs/updatePopup.js @@ -5,5 +5,10 @@ Tea.context(function () { this.switchTextMode = function () { this.textMode = !this.textMode + if (this.textMode) { + this.$delay(function () { + this.$refs.certTextField.focus() + }) + } } }) \ No newline at end of file diff --git a/web/views/@default/servers/certs/uploadPopup.html b/web/views/@default/servers/certs/uploadPopup.html index 79b1d314..ed33b2d6 100644 --- a/web/views/@default/servers/certs/uploadPopup.html +++ b/web/views/@default/servers/certs/uploadPopup.html @@ -22,15 +22,15 @@ - 选择证书文件 * + 输入证书内容选择证书文件 * - +

[输入内容上传文件]。文件内容中通常含有"-----BEGIN CERTIFICATE-----"类似的信息。

- 选择私钥文件 * + 输入私钥内容选择私钥文件 * diff --git a/web/views/@default/servers/certs/uploadPopup.js b/web/views/@default/servers/certs/uploadPopup.js index bc78183a..43186a6f 100644 --- a/web/views/@default/servers/certs/uploadPopup.js +++ b/web/views/@default/servers/certs/uploadPopup.js @@ -5,5 +5,10 @@ Tea.context(function () { this.switchTextMode = function () { this.textMode = !this.textMode + if (this.textMode) { + this.$delay(function () { + this.$refs.certTextField.focus() + }) + } } }) \ No newline at end of file