diff options
author | elijah <elijah@riseup.net> | 2013-07-02 23:11:23 -0700 |
---|---|---|
committer | elijah <elijah@riseup.net> | 2013-07-02 23:11:23 -0700 |
commit | fbe23fc59814f0b27dbc1073c34f03a6d22cab99 (patch) | |
tree | 82c1120f84f33c619257b8c0a01d6906e752b79d /core/app | |
parent | 3dbf13f3c53a741341897aa2af36d6ef8dcead2c (diff) |
add js to report all errors to the user, not just ones related to field validation.
Diffstat (limited to 'core/app')
-rw-r--r-- | core/app/assets/javascripts/leap.js | 7 |
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>'); +} |