Changeset

4124:4d54e75312af

mod_invites_page: Fix incorrect use of <button> (thanks Martin)
author Matthew Wild <mwild1@gmail.com>
date Mon, 14 Sep 2020 18:06:54 +0100
parents 4123:82b02f85ac31
children 4125:24404c289014
files mod_invites_page/html/invite.html
diffstat 1 files changed, 6 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/mod_invites_page/html/invite.html	Mon Sep 14 18:06:33 2020 +0100
+++ b/mod_invites_page/html/invite.html	Mon Sep 14 18:06:54 2020 +0100
@@ -26,13 +26,11 @@
 					<strong>Tip:</strong> You can open this invite
 					on your mobile device by scanning a barcode with
 					your camera.
-					<a href="#qr-modal" class="mt-2 d-block" id="qr-modal-show">
-						<button class="btn btn-info" title="Send this invite to your device"
-							data-toggle="modal" data-target="#qr-modal">
-								<img src="{static}/qr-logo.png" class="align-middle h-50 mt-1" style="display:inline" >
-								Scan with mobile device
-						</button>
-					</a>
+					<button id="qr-modal-show" class="mt-2 d-block btn btn-info" title="Send this invite to your device"
+						data-toggle="modal" data-target="#qr-modal">
+							<img src="{static}/qr-logo.png" class="align-middle h-50 mt-1" style="display:inline" >
+							Scan with mobile device
+					</button>
 				</div>
 			
 				{inviter?<p>You have been invited to chat on {site_name} using XMPP,
@@ -79,7 +77,7 @@
 				<h6 class="text-center">Already have a compatible app installed?</h6>
 
 				<div class="text-center">
-					<a href="{uri}" id="uri-cta"><button class="btn btn-secondary btn-sm">Open the app</button></a><br/>
+					<a href="{uri}" id="uri-cta class="btn btn-secondary btn-sm">Open the app</a><br/>
 					<small class="text-muted">This button works only if you have a compatible app installed already!</small>
 				</div>
 				<br/>