Skip to content

Commit 1716a65

Browse files
author
Sachin Maheshwari
committed
disabling double submit
1 parent 4ae5992 commit 1716a65

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

web-assets/js/signup.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,12 @@ var qs = (function (a) {
1111
return b;
1212
})(window.location.search.substr(1).split("&"));
1313
$(document).ready(function () {
14-
$("#continueBtn").dblclick(function(e){
15-
e.preventDefault();
16-
console.log("Double-click disabled!");
17-
});
14+
$("#continueBtn").submit(function() {
15+
$(this).submit(function() {
16+
return false;
17+
});
18+
return true;
19+
});
1820
$.each(countryObjs, function () {
1921
$("#country").append(
2022
$("<option></option>").text(this.name).val(JSON.stringify(this))

0 commit comments

Comments
 (0)