1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2024-11-24 02:37:05 +00:00

Cdon't try to generate a CSR in the control panel until both the domain and country are selected

Fixes #1338.

See 0e9680fda63c33ace3f34ca7126617fb0efe8ffc, a52c56e571.
This commit is contained in:
Joshua Tauberer 2018-01-28 08:58:49 -05:00
parent 35fed8606e
commit 61e9888a85

View File

@ -159,7 +159,11 @@ function ssl_install(elem) {
}
function show_csr() {
// Can't show a CSR until both inputs are entered.
if ($('#ssldomain').val() == "") return;
if ($('#sslcc').val() == "") return;
// Scroll to it and fetch.
$('#csr_info').slideDown();
$('#ssl_csr').text('Loading...');
api(