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

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

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

Loading…
Cancel
Save