pref-prefs: show disabled register certificate button when certificate is unavailable
This commit is contained in:
parent
d80b3f3de1
commit
a335a9f80d
1 changed files with 4 additions and 5 deletions
|
@ -439,12 +439,11 @@
|
|||
name=\"$pref_name\" value=\"$value\">";
|
||||
|
||||
$cert_serial = htmlspecialchars(get_ssl_certificate_id());
|
||||
$has_serial = ($cert_serial) ? "false" : "true";
|
||||
|
||||
if ($cert_serial) {
|
||||
print " <button dojoType=\"dijit.form.Button\"
|
||||
print " <button dojoType=\"dijit.form.Button\" disabled=\"$has_serial\"
|
||||
onclick=\"insertSSLserial('$cert_serial')\">" .
|
||||
__('Register') . "</button>";
|
||||
}
|
||||
|
||||
print " <button dojoType=\"dijit.form.Button\"
|
||||
onclick=\"insertSSLserial('')\">" .
|
||||
|
|
Loading…
Reference in a new issue