Skip to content

Commit 3aa5ef6

Browse files
author
Sachin Maheshwari
committed
stoping db click events
1 parent 7466ccf commit 3aa5ef6

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

web-assets/js/signup.js

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,12 @@ var qs = (function (a) {
1111
return b;
1212
})(window.location.search.substr(1).split("&"));
1313
$(document).ready(function () {
14-
$('.continue-btn').dblclick(false);
14+
document.addEventListener('dblclick', function (event) {
15+
console.log("Double-click disabled!");
16+
event.preventDefault();
17+
event.stopPropagation();
18+
}, true //capturing phase!!
19+
);
1520
$.each(countryObjs, function () {
1621
$("#country").append(
1722
$("<option></option>").text(this.name).val(JSON.stringify(this))
@@ -20,14 +25,14 @@ $(document).ready(function () {
2025
//first name & last name div
2126
var firstname = qs['firstName'];
2227
if (firstname !== 'undefined') {
23-
$("#firstName").val(firstname);
28+
$("#firstName").val(firstname);
2429
$("#fn").hide();
25-
}
30+
}
2631
var lastname = qs['lastName'];
2732
if (lastname !== 'undefined') {
28-
$("#lastName").val(lastname);
33+
$("#lastName").val(lastname);
2934
$("#ln").hide();
30-
}
35+
}
3136
$("#continueBtn").click(function () {
3237
var handle = $("#handle").val();
3338
var country = $("#country").val();

0 commit comments

Comments
 (0)