mirror of
https://github.com/grocy/grocy.git
synced 2026-04-07 05:16:15 +02:00
Center QR-Code in popups
This commit is contained in:
parent
6bcabad670
commit
890b5c8ad2
|
|
@ -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
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
});
|
});
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user