Use button instead of input.button in PGP keys search dialog

pull/6040/head
Aleksander Machniak 7 years ago
parent 0d3b61a022
commit 95360ef8ab

@ -3943,11 +3943,10 @@ function rcube_webmail()
});
li.append(ul_);
li.append($('<input>')
.attr('type', 'button')
li.append($('<button>')
.attr('rel', keyrec.keyid)
.attr('value', ref.get_label('import'))
.addClass('button importkey')
.text(ref.get_label('import'))
.addClass('button import importkey')
.prop('disabled', keyrec.revoked || keyrec.disabled || keyrec.expired));
ul.append(li);
@ -3964,7 +3963,7 @@ function rcube_webmail()
);
// delegate handler for import button clicks
ul.on('click', 'input.button.importkey', function() {
ul.on('click', 'button.importkey', function() {
var btn = $(this),
keyid = btn.attr('rel'),
pk = new PublicKey(),

@ -1636,13 +1636,13 @@ table.quota-info td.root {
padding: 2px;
}
.pgpkeyimport div.key input.button.importkey {
.pgpkeyimport div.key button.importkey {
position: absolute;
top: 0.8em;
right: 0.8em;
padding: 2px 6px;
}
.pgpkeyimport div.key input.button[disabled] {
.pgpkeyimport div.key button[disabled] {
display: none;
}

@ -3092,13 +3092,13 @@ button.mce-close,
padding: 0.3em;
}
.pgpkeyimport div.key input.button.importkey {
.pgpkeyimport div.key button.importkey {
position: absolute;
top: 0.8em;
right: 0.8em;
padding: 4px 6px;
}
.pgpkeyimport div.key input.button[disabled] {
.pgpkeyimport div.key button[disabled] {
display: none;
}

Loading…
Cancel
Save