From da11e2e8df02bbcd9aa34e5ae7b9da4017a7e286 Mon Sep 17 00:00:00 2001 From: Kevin Mehall Date: Mon, 10 Jun 2013 16:14:20 -0400 Subject: [PATCH] Make error messages visible (trac #1294). ce4e860a introduced CSS `.alert{display:none;}` because alerts are always included in `/signup/` and shown by JS. Use a new `.alert-hidden` class for this purpose to avoid breaking other pages. (imported from commit 199ba35dd3356bd4093aac2a54181331b3993ee8) --- templates/zephyr/signup.html | 6 +++--- zephyr/static/js/landing-page.js | 2 +- zephyr/static/styles/portico.css | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/templates/zephyr/signup.html b/templates/zephyr/signup.html index c4f4188400..3503558cc4 100644 --- a/templates/zephyr/signup.html +++ b/templates/zephyr/signup.html @@ -20,18 +20,18 @@
-
+

Success!

Thank you for your interest. We'll be in touch soon. While you wait, check out some of our features!
-
+

Ruh-roh!

Hmmm, something went wrong. Please send email to support@humbughq.com.
-
+

Your email is required!

How else would we be able to reach you?
diff --git a/zephyr/static/js/landing-page.js b/zephyr/static/js/landing-page.js index f6d3994f8a..a2f674dd8b 100644 --- a/zephyr/static/js/landing-page.js +++ b/zephyr/static/js/landing-page.js @@ -23,7 +23,7 @@ $(function () { $(".letter-form").ajaxForm({ dataType: 'json', // This seems to be ignored. We still get back an xhr. beforeSubmit: function (arr, form, options) { - $(".alert").hide(); + $(".alert-hidden").hide(); var has_email = false; $.each(arr, function (idx, elt) { if (elt.name === 'email' && elt.value.length) { diff --git a/zephyr/static/styles/portico.css b/zephyr/static/styles/portico.css index 76906e3d4f..ae0667b7f6 100644 --- a/zephyr/static/styles/portico.css +++ b/zephyr/static/styles/portico.css @@ -308,6 +308,6 @@ img.screenshot{ } } -.alert { +.alert-hidden { display: none; }