Minor adjustment to QR length handling

Don't attempt to create QR code for huge data.
This commit is contained in:
bitcoincoltd
2015-06-22 15:58:11 +07:00
parent 1cd101fd9e
commit d68361fba3
+1
View File
@@ -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");