blob: c12a2d65859564fb985cee07d00738744ac87104 (
plain)
1
2
3
4
5
6
7
8
9
|
//
// 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><pre>'+msg+'</pre></div>');
}
ClientSideValidations.formBuilders['SimpleForm::FormBuilder'].wrappers.bootstrap = ClientSideValidations.formBuilders['SimpleForm::FormBuilder'].wrappers["default"];
|