hide legend for QR Code size toggle when QR Code cannot be rendered
This commit is contained in:
parent
2493fd6465
commit
0cc9b8b13f
2 changed files with 6 additions and 5 deletions
10
index.html
10
index.html
|
|
@ -653,7 +653,7 @@
|
|||
|
||||
<p class="alert alert-danger hide" id="qrcode-msg-too-long" data-i18n="qrcode.msg-too-long">
|
||||
Cannot create QR Code: Route definition is too long. Removing some waypoints may help fit
|
||||
all data into the QRCode.
|
||||
all data into the QR Code.
|
||||
</p>
|
||||
<p
|
||||
class="alert alert-danger hide"
|
||||
|
|
@ -661,11 +661,11 @@
|
|||
data-i18n="qrcode.msg-unknown-error"
|
||||
>
|
||||
Cannot create QR Code: An unknown error occurred. See the browser console for details. Maybe
|
||||
the route definition is too long. Removing some waypoints may help fit all data into the
|
||||
QRCode.
|
||||
the route definition is too long. Removing some waypoints may help fit all data into the QR
|
||||
Code.
|
||||
</p>
|
||||
<div>
|
||||
<div class="pull-left mr-2"><small>QR Code Size:</small></div>
|
||||
<div id="qrcode-size-buttons">
|
||||
<div class="mt-2"><small>QR Code Size:</small></div>
|
||||
<div
|
||||
id="qrcode-buttons"
|
||||
class="btn-group btn-group-xs"
|
||||
|
|
|
|||
|
|
@ -99,6 +99,7 @@ BR.ShareRoute = L.Class.extend({
|
|||
} catch (exception) {
|
||||
$('#share-qrcode-img').empty();
|
||||
$('#qrcode-buttons').hide();
|
||||
$('#qrcode-size-buttons').hide();
|
||||
if (exception.message === 'Too long data') {
|
||||
$('#qrcode-msg-too-long').show();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue