From fbe23fc59814f0b27dbc1073c34f03a6d22cab99 Mon Sep 17 00:00:00 2001 From: elijah Date: Tue, 2 Jul 2013 23:11:23 -0700 Subject: add js to report all errors to the user, not just ones related to field validation. --- core/app/assets/javascripts/leap.js | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 core/app/assets/javascripts/leap.js (limited to 'core/app/assets/javascripts') diff --git a/core/app/assets/javascripts/leap.js b/core/app/assets/javascripts/leap.js new file mode 100644 index 0000000..94e602d --- /dev/null +++ b/core/app/assets/javascripts/leap.js @@ -0,0 +1,7 @@ + +// +// add a bootstrap alert to the page via javascript. +// +function alert_message(msg) { + $('#messages').append('
×'+msg+'
'); +} -- cgit v1.2.3