Skip to content

Commit

Permalink
avoid spam
Browse files Browse the repository at this point in the history
  • Loading branch information
longntgapone committed Sep 27, 2024
1 parent 2c64e53 commit c368346
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions templates/template135/js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@
// Collect form data
var name = $('#name-comment').val();
var content = $('#detail-comment').val();
$('#btn-submit-comment').attr("disabled", true);
$.ajax({
type: "POST",
url: "https://script.google.com/macros/s/AKfycbyjSlC6ymLR8fasKqCIVA8CNsX5NvqfQs019drdtpqnUfe375uHi70NBdZUqQrbBErEMw/exec",
Expand All @@ -129,6 +130,7 @@
}

form.reset();
$('#btn-submit-comment').attr("disabled", false);
},
error: function() {
$( "#loader").hide();
Expand Down

0 comments on commit c368346

Please sign in to comment.