Fixed issue #685 - Feedback form not working in Safari.

This commit is contained in:
Martin Edenhofer 2017-01-30 14:48:33 +01:00
parent 29ec431810
commit 4e9f33954b

View file

@ -277,9 +277,14 @@ $(function() {
var formData = new FormData(_this.$form[0])
/* unfortunaly not working in safari and some IEs - https://developer.mozilla.org/en-US/docs/Web/API/FormData
if (!formData.has('title')) {
formData.append('title', this.options.messageTitle)
}
*/
if (!_this.$form.find('[name=title]').val()) {
formData.append('title', this.options.messageTitle)
}
if (this.options.test) {
formData.append('test', true)