From 4e9f33954b0afa497ac9e9ced62b6059492b9941 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Mon, 30 Jan 2017 14:48:33 +0100 Subject: [PATCH] Fixed issue #685 - Feedback form not working in Safari. --- public/assets/form/form.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/public/assets/form/form.js b/public/assets/form/form.js index 6ffc9b7ee..3066b4d32 100644 --- a/public/assets/form/form.js +++ b/public/assets/form/form.js @@ -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)