Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Krombel add i18n #61

Merged
merged 11 commits into from
Mar 31, 2019
Prev Previous commit
Next Next commit
Fixed correct content-type
  • Loading branch information
Robin Persson committed Jul 27, 2018
commit 9235e47fbfeb87fdc897d107386a6deb8a64f3ee
2 changes: 1 addition & 1 deletion layouts/partials/scripts/contact.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion static/scripts/contact.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion static/scripts/src/contact.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ $('#form-contact').addEventListener('submit', function(e) {

// Send to Formspree or Basin
request.open('POST', '{{ if .Site.Params.ajaxFormspree }}https://formspree.io/{{ .Site.Params.email }}{{ else if .Site.Params.ajaxBasin }}{{ .Site.Params.ajaxBasin }}.json{{ end }}', true);
request.setRequestHeader('{{ if .Site.Params.ajaxFormspree }}Content-Type{{ else if .Site.Params.ajaxBasin }}Accept{{ end }}', 'application/json; charset=UTF-8');
request.setRequestHeader('Content-Type', 'application/json;charset=UTF-8');
// Call function when the state changes
request.onreadystatechange = function() {
if (request.readyState == 4 && request.status == 200) {
Expand Down