From a71d4663113101a8a3c11361ae5c7da4838d7c38 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Tue, 8 Oct 2013 09:34:30 +0000 Subject: [PATCH] fix newlines in contact form --- static/js/contactForm.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/static/js/contactForm.js b/static/js/contactForm.js index 57afb94de..9fb6a5dc8 100644 --- a/static/js/contactForm.js +++ b/static/js/contactForm.js @@ -47,7 +47,9 @@ pandora.ui.contactForm = function() { width: width }), Ox.Input({ - autovalidate: /.+/, + autovalidate: function(value, blur, callback) { + callback({valid: value.length > 0, value: value}); + }, height: 256, id: 'message', placeholder: 'Message',