diff --git a/public/assets/form/form.js b/public/assets/form/form.js index c39da9cbf..b8d0456fd 100644 --- a/public/assets/form/form.js +++ b/public/assets/form/form.js @@ -26,6 +26,7 @@ $(function() { tag: 'input', type: 'text', placeholder: 'Your Name', + defaultValue: '', }, { display: 'Email', @@ -33,12 +34,14 @@ $(function() { tag: 'input', type: 'email', placeholder: 'Your Email', + defaultValue: function () {return User.email;}, }, { display: 'Message', name: 'body', tag: 'textarea', placeholder: 'Your Message...', + defaultValue: '', rows: 7, }, { @@ -73,23 +76,23 @@ $(function() { name: 'name', tag: 'input', type: 'text', - value: '', placeholder: 'Your Name', + defaultValue: '', }, { display: 'Email', name: 'email', tag: 'input', type: 'email', - value: '', placeholder: 'Your Email', + defaultValue: '', }, { display: 'Message', name: 'body', tag: 'textarea', placeholder: 'Your Message...', - value: '', + defaultValue: '', rows: 7, }, ], @@ -363,14 +366,14 @@ $(function() { $form.append('