diff options
author | azul <azul@riseup.net> | 2017-03-23 15:44:06 +0000 |
---|---|---|
committer | azul <azul@riseup.net> | 2017-03-23 15:44:06 +0000 |
commit | 9beeee8aa2d1656e7c80e54137156e7922737aa5 (patch) | |
tree | aa72458db14d1afbf06c89e40f4c28c6477015c4 /app/assets/javascripts/leap.js | |
parent | ca92c307d0c02ee56d3ff22661511d8386d1af8f (diff) | |
parent | c11e31acf3a592b8560459469ae4acf0e6e5dfd4 (diff) |
Merge branch 'fix/display-js-error-responses' into 'master'
fix: display error js responses in dev environment
See merge request !30
github issue #231
Diffstat (limited to 'app/assets/javascripts/leap.js')
-rw-r--r-- | app/assets/javascripts/leap.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/assets/javascripts/leap.js b/app/assets/javascripts/leap.js index c8fbcf5..c12a2d6 100644 --- a/app/assets/javascripts/leap.js +++ b/app/assets/javascripts/leap.js @@ -3,7 +3,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>'); + $('#messages').append('<div class="alert alert-error"><a class="close" data-dismiss="alert">×</a><pre>'+msg+'</pre></div>'); } ClientSideValidations.formBuilders['SimpleForm::FormBuilder'].wrappers.bootstrap = ClientSideValidations.formBuilders['SimpleForm::FormBuilder'].wrappers["default"]; |