diff options
author | elijah <elijah@riseup.net> | 2013-07-02 23:11:23 -0700 |
---|---|---|
committer | elijah <elijah@riseup.net> | 2013-07-04 04:04:55 -0700 |
commit | e996432cbd50f4dadaae0ff62ac3f286ab125b1f (patch) | |
tree | fa05b7a2fefc737e336399515e45630c99f904f0 /core/app/assets | |
parent | 4863ce5e78d880f1ca8a1874cd03022afb061f4a (diff) |
add js to report all errors to the user, not just ones related to field validation.
Diffstat (limited to 'core/app/assets')
-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>'); +} |