Center QR-Code in popups

This commit is contained in:
Bernd Bestel 2020-09-06 09:59:32 +02:00
parent 6bcabad670
commit 890b5c8ad2
No known key found for this signature in database
GPG Key ID: 71BD34C0D4891300
2 changed files with 4 additions and 4 deletions

View File

@ -32,8 +32,8 @@ $("#ical-button").on("click", function(e)
{ {
bootbox.alert({ bootbox.alert({
title: __t('Share/Integrate calendar (iCal)'), title: __t('Share/Integrate calendar (iCal)'),
message: __t('Use the following (public) URL to share or integrate the calendar in iCal format') + '<input type="text" class="form-control form-control-sm mt-2 easy-link-copy-textbox" value="' + result.url + '">' message: __t('Use the following (public) URL to share or integrate the calendar in iCal format') + '<input type="text" class="form-control form-control-sm mt-2 easy-link-copy-textbox" value="' + result.url + '"><p class="text-center mt-4">'
+ getQRCodeForContent(result.url), + getQRCodeForContent(result.url) + "</p>",
closeButton: false closeButton: false
}); });
}, },

View File

@ -63,10 +63,10 @@ $(document).on('click', '.apikey-delete-button', function(e)
}); });
$('.apikey-show-qr-button').on('click', function() $('.apikey-show-qr-button').on('click', function()
{ {
var QRhtml = getQRCodeForAPIKey($(this).data('apikey-key'), $(this).data('apikey-type')); var qrcodeHtml = getQRCodeForAPIKey($(this).data('apikey-key'), $(this).data('apikey-type'));
bootbox.alert({ bootbox.alert({
title: __t('API key'), title: __t('API key'),
message: QRhtml, message: "<p class='text-center'>" + qrcodeHtml + "</p>",
closeButton: false closeButton: false
}); });
}) })