summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/leap.js
blob: 5084efa5e7f86b3e78358079058672a646078077 (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-danger"><a class="close" data-dismiss="alert">×</a>'+msg+'</div>');
}

ClientSideValidations.formBuilders['SimpleForm::FormBuilder'].wrappers.bootstrap = ClientSideValidations.formBuilders['SimpleForm::FormBuilder'].wrappers["default"];