Skip to content
Snippets Groups Projects
Commit 397ce8b1 authored by Seb Barnard's avatar Seb Barnard :speech_balloon:
Browse files

Fixed tab and enter on business register form

parent 0630d489
No related branches found
No related tags found
3 merge requests!114LoggingService service class, new method to add a log to the "Logs" table when...,!104Branch Update,!103Issue thirty four
var modalStage = 0 var modalStage = 0
var urlInput, urlPrefixInput, nameInput, descInput, tagsInput, amountInput = null; var urlInput, urlPrefixInput, nameInput, descInput, tagsInput, amountInput = null;
function keyPress(e) {
if(e.key == "Enter"){
e.preventDefault()
progress()
}if(e.key == "Tab"){
e.preventDefault()
}
}
function htmlDecode(input) { function htmlDecode(input) {
var doc = new DOMParser().parseFromString(input, "text/html"); var doc = new DOMParser().parseFromString(input, "text/html");
return doc.documentElement.textContent; return doc.documentElement.textContent;
......
...@@ -49,6 +49,8 @@ ...@@ -49,6 +49,8 @@
total_reward_amount=${shop.getStampBoard.getRewards.size}, total_reward_amount=${shop.getStampBoard.getRewards.size},
img_path=${shop.shopImage}, img_path=${shop.shopImage},
shopId=${shop.shopId}"></div> shopId=${shop.shopId}"></div>
<h1 class="subtitle is-5" th:if="${favouriteShops.size == 0 && activeShops.size == 0}"> Looks like you don't have any stamps yet, favourite a shop or make a purchase to start collecting!</h1>
</div> </div>
......
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
<div id="progressBar" class="progressBar"> <div id="progressBar" class="progressBar">
<div style="width:20%"></div> <div style="width:20%"></div>
</div> </div>
<form name="businessForm" id="businessForm" action="/businessRegister" th:method="post" onsubmit="return false"> <form onkeydown="keyPress(event)" name="businessForm" id="businessForm" action="/businessRegister" th:method="post" onsubmit="return false">
<section class="modal-card-body url-centering" id="modal_container"> <section class="modal-card-body url-centering" id="modal_container">
<div id="modal_page1" class="modal_page"> <div id="modal_page1" class="modal_page">
<h5 class="title is-5" style="text-align:center">Enter your shop URL</h5> <h5 class="title is-5" style="text-align:center">Enter your shop URL</h5>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment