Minor adjustment to QR length handling
Don't attempt to create QR code for huge data.
This commit is contained in:
parent
1cd101fd9e
commit
d68361fba3
1 changed files with 1 additions and 0 deletions
|
@ -935,6 +935,7 @@ $(document).ready(function() {
|
|||
var qrstr = $('textarea',$(this).closest('.input-group')).val();
|
||||
if(qrstr.length > 2000){
|
||||
$("#qrcode").html("<p>Sorry the data is too long for the QR generator.</p>");
|
||||
return;
|
||||
}
|
||||
}else{
|
||||
var qrcode = new QRCode("qrcode");
|
||||
|
|
Loading…
Reference in a new issue