summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2013-07-02 23:11:23 -0700
committerelijah <elijah@riseup.net>2013-07-02 23:11:23 -0700
commitfbe23fc59814f0b27dbc1073c34f03a6d22cab99 (patch)
tree82c1120f84f33c619257b8c0a01d6906e752b79d /core
parent3dbf13f3c53a741341897aa2af36d6ef8dcead2c (diff)
add js to report all errors to the user, not just ones related to field validation.
Diffstat (limited to 'core')
-rw-r--r--core/app/assets/javascripts/leap.js7
1 files changed, 7 insertions, 0 deletions
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('<div class="alert alert-error"><a class="close" data-dismiss="alert">×</a><span>'+msg+'</span></div>');
+}