Fix #957 -- Integrate BezahlCode and GiroCode

This commit is contained in:
Raphael Michel
2018-10-29 12:57:26 +01:00
parent 409e77cf2f
commit 7a945daefc
8 changed files with 77 additions and 12 deletions

View File

@@ -374,7 +374,10 @@ var form_handlers = function (el) {
$div.insertBefore($(this));
$div.qrcode(
{
text: $(this).html()
text: $(this).html(),
correctLevel: 0, // M
width: $(this).attr("data-size") ? parseInt($(this).attr("data-size")) : 256,
height: $(this).attr("data-size") ? parseInt($(this).attr("data-size")) : 256,
}
);
});

View File

@@ -91,6 +91,19 @@ var form_handlers = function (el) {
};
$(this).datetimepicker(opts);
});
el.find("script[data-replace-with-qr]").each(function () {
var $div = $("<div>");
$div.insertBefore($(this));
$div.qrcode(
{
text: $(this).html(),
correctLevel: 0, // M
width: $(this).attr("data-size") ? parseInt($(this).attr("data-size")) : 256,
height: $(this).attr("data-size") ? parseInt($(this).attr("data-size")) : 256,
}
);
});
}