route validation and prevent navigation from breaking on re-cklick
This commit is contained in:
@@ -25,10 +25,10 @@
|
||||
<!-- Collect the nav links, forms, and other content for toggling -->
|
||||
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
|
||||
<ul class="nav navbar-nav">
|
||||
<li class="topNavmainScreen topNavHome active"><a class="navBarTab" href="#Home" >Home</a></li>
|
||||
<li class="topNavmainScreen topNavSell"><a class="navBarTab" href="#Sell">Sell</a></li>
|
||||
<li class="topNavmainScreen topNavHome active"><a class="navBarTab" mytargeturl="#Home" >Home</a></li>
|
||||
<li class="topNavmainScreen topNavSell"><a class="navBarTab" mytargeturl="#Sell">Sell</a></li>
|
||||
</ul>
|
||||
|
||||
|
||||
<ul class="nav navbar-nav navbar-right">
|
||||
<li class="dropdown">
|
||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">More<span class="caret"></span></a>
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
<h1>ERROR occured whilst sending form data. Please try again!</h1>
|
||||
<h1>ERROR occured whilst sending form data.</h1>
|
||||
|
||||
Please check your internet connection and try to <a type="submit" class="btn btn-success" onclick="ibuyproperties.sellForm.sendForm();">resubmit</a><br>
|
||||
<b>... or alternatively send the data via <button class="btn btn-success" onclick="generateMail();" id="mailLink">e-mail</button>.</b>
|
||||
|
||||
<script>
|
||||
@@ -8,4 +9,4 @@
|
||||
console.log("Fallback Mail Content",content);
|
||||
window.location.href=content;
|
||||
}
|
||||
</script>
|
||||
</script>
|
||||
|
||||
@@ -1 +1,8 @@
|
||||
<h1>Thanks!</h1>
|
||||
<h1>Thanks!</h1>
|
||||
<hr/>
|
||||
Your data was submitted and we will contact you after reviewing.<br/>
|
||||
<br/>
|
||||
Kind regards<br/>
|
||||
<br/>
|
||||
~Joe
|
||||
|
||||
|
||||
@@ -2,13 +2,13 @@
|
||||
function checkEMail(theEmailAddress){
|
||||
return (/^([a-zA-Z0-9_.-])+@(([a-zA-Z0-9-])+.)+([a-zA-Z0-9]{2,4})+$/.test(theEmailAddress));
|
||||
}
|
||||
|
||||
|
||||
function nextHandler(){
|
||||
$("#alertInvalidEMail").addClass("hide");
|
||||
if(checkEMail($($('[name="email"]')[0]).val())){
|
||||
window.location="#Sell/page2/";
|
||||
window.location="#Sell/page2/";
|
||||
} else {
|
||||
console.log("EMail Wrong");
|
||||
if (ibuyproperties.isDebugMode) { console.log("EMail Wrong"); }
|
||||
$("#alertInvalidEMail").removeClass("hide");
|
||||
}
|
||||
}
|
||||
@@ -18,13 +18,13 @@ function nextHandler(){
|
||||
<div id="alertInvalidEMail" class="alert alert-danger hide" role="alert">
|
||||
<span class="glyphicon glyphicon-exclamation-sign" aria-hidden="true"></span>
|
||||
<span class="sr-only">Error:</span>
|
||||
Enter a valid email address
|
||||
A valid email address is required.
|
||||
</div>
|
||||
<div class="input-group" style="width:100%">
|
||||
<span class="input-group-addon fixWidth1 fieldLabel" >First Name</span>
|
||||
<input type="text" name="firstName" class="form-control"/>
|
||||
</div>
|
||||
<div class="input-group" style="width:100%">
|
||||
</div>
|
||||
<div class="input-group" style="width:100%">
|
||||
<span class="input-group-addon fixWidth1 fieldLabel">Last Name</span>
|
||||
<input type="text" name="LastName" class="form-control"/>
|
||||
</div>
|
||||
@@ -34,8 +34,8 @@ function nextHandler(){
|
||||
<span class="input-group-addon fieldLabel">
|
||||
Preferred <input type="checkbox" name="prefEmail"/>
|
||||
</span>
|
||||
</div>
|
||||
<div class="input-group">
|
||||
</div>
|
||||
<div class="input-group">
|
||||
<span class="input-group-addon fixWidth1 fieldLabel" >Phone</span>
|
||||
<input type="text" name="phone" class="form-control"/>
|
||||
<span class="input-group-addon fieldLabel">
|
||||
|
||||
Reference in New Issue
Block a user