From 977abe6dc4e5401adace817736452884d741e9f9 Mon Sep 17 00:00:00 2001 From: rolux Date: Mon, 25 Mar 2013 20:30:53 +0530 Subject: [PATCH] fix #1443 (disable send button while sending contact message) --- static/js/pandora/contactForm.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/static/js/pandora/contactForm.js b/static/js/pandora/contactForm.js index be72c9242..bb91c0afe 100644 --- a/static/js/pandora/contactForm.js +++ b/static/js/pandora/contactForm.js @@ -98,6 +98,10 @@ pandora.ui.contactForm = function() { .bindEvent({ click: function() { var data = $form.values(); + $sendButton.options({ + disabled: true, + title: 'Sending Message...' + }); pandora.api.contact({ name: data.name, email: data.email, @@ -122,6 +126,10 @@ pandora.ui.contactForm = function() { title: 'Message Sent' }) .open(); + $sendButton.options({ + disabled: false, + title: 'Send Message' + }); }); }