Skip to content

Commit ee61db3

Browse files
committed
contact form sucess message
1 parent 624ef21 commit ee61db3

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

_data/texts.yml

+3
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,7 @@ contact_form_help: >
2121
Please do not include any sensitive information in your message.
2222
This form is meant to help triage inquries and requests for support.
2323
We will respond within 24-48 hours. If your need is urgent, please use our phone number.
24+
contact_form_confirmation: >
25+
Thank you for reaching out to us! We will respond to your message as soon as
26+
is possible. For urgent requests, please call our phone number.
2427
copyright_footer: "©2015 The Black Movement-Law Project. All Rights Reserved."

_includes/sections/contact.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ <h3>Email</h3>
127127
<input type="text" name="_gotcha" style="display:none" />
128128
<div class="form-group">
129129
<div class="col-sm-12">
130-
<button id="submit-button" type="submit" class="btn btn-primary"><span class="fa loading-icon"></span> <span>Submit Message</span>
130+
<button id="submit-button" data-submit-success="{{site.data.texts.contact_form_confirmation}}" type="submit" class="btn btn-primary"><span class="fa loading-icon"></span> <span>Submit Message</span>
131131
</button>
132132
</div>
133133
</div>

assets/js/repute-scripts.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ $(document).ready(function() {
438438
.done(function(message) {
439439

440440
if (message.success) {
441-
$message = message.success;
441+
var $message = $('#submit-button').attr('data-submit-success');
442442
$theForm.slideUp('medium', function() {
443443
$alert.removeClass('alert-danger');
444444
$alert.addClass('alert-success').html($message).slideDown('medium');

0 commit comments

Comments
 (0)