Skip to content

Commit 7c794d6

Browse files
authored
bugfix contact form
contact form did not work on Safari
1 parent dc0447e commit 7c794d6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

BlogEngine/BlogEngine.NET/Scripts/contact.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ function endSendMessage(arg, context) {
3737
else {
3838
if ($("#spnCaptchaIncorrect")) $("#spnCaptchaIncorrect").css("display", "none");
3939

40-
$('[data-id="btnSend').attr("disabled", "");
41-
var form = $('[data-id="divForm');
40+
$('[data-id="btnSend"]').attr("disabled", "");
41+
var form = $('[data-id="divForm"]');
4242
var thanks = $('#thanks');
4343

4444
form.css("display", "none");
@@ -56,4 +56,4 @@ function onSendError(err, context) {
5656
}
5757
$('[data-id="btnSend"]').css("display", "none");
5858
alert("Sorry, but the following occurred while attemping to send your message: " + err);
59-
}
59+
}

0 commit comments

Comments
 (0)