From 890b5c8ad28488741604ac2792d52adbf4e78733 Mon Sep 17 00:00:00 2001 From: Bernd Bestel Date: Sun, 6 Sep 2020 09:59:32 +0200 Subject: [PATCH] Center QR-Code in popups --- public/viewjs/calendar.js | 4 ++-- public/viewjs/manageapikeys.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/public/viewjs/calendar.js b/public/viewjs/calendar.js index d8d5559f..e4507295 100644 --- a/public/viewjs/calendar.js +++ b/public/viewjs/calendar.js @@ -32,8 +32,8 @@ $("#ical-button").on("click", function(e) { bootbox.alert({ title: __t('Share/Integrate calendar (iCal)'), - message: __t('Use the following (public) URL to share or integrate the calendar in iCal format') + '' - + getQRCodeForContent(result.url), + message: __t('Use the following (public) URL to share or integrate the calendar in iCal format') + '

' + + getQRCodeForContent(result.url) + "

", closeButton: false }); }, diff --git a/public/viewjs/manageapikeys.js b/public/viewjs/manageapikeys.js index 3660b6c9..07e03c46 100644 --- a/public/viewjs/manageapikeys.js +++ b/public/viewjs/manageapikeys.js @@ -63,10 +63,10 @@ $(document).on('click', '.apikey-delete-button', function(e) }); $('.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({ title: __t('API key'), - message: QRhtml, + message: "

" + qrcodeHtml + "

", closeButton: false }); })