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:
parent
35fed8606e
commit
61e9888a85
@ -159,7 +159,11 @@ function ssl_install(elem) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function show_csr() {
|
function show_csr() {
|
||||||
|
// Can't show a CSR until both inputs are entered.
|
||||||
if ($('#ssldomain').val() == "") return;
|
if ($('#ssldomain').val() == "") return;
|
||||||
|
if ($('#sslcc').val() == "") return;
|
||||||
|
|
||||||
|
// Scroll to it and fetch.
|
||||||
$('#csr_info').slideDown();
|
$('#csr_info').slideDown();
|
||||||
$('#ssl_csr').text('Loading...');
|
$('#ssl_csr').text('Loading...');
|
||||||
api(
|
api(
|
||||||
|
Loading…
Reference in New Issue
Block a user