summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/leap.js
diff options
context:
space:
mode:
authorAzul <azul@riseup.net>2016-03-24 22:13:41 +0100
committerAzul <azul@riseup.net>2016-05-02 08:31:16 -0300
commit636421bf386e813cb6a87a7499fdedc975b75900 (patch)
tree8483a50a22710b50eec813f119803e113f9c02f8 /app/assets/javascripts/leap.js
parentb718bea325793430d06d94570dd848fc71a57387 (diff)
upgrade: add formbuilder wrapper for bootstrap
Not sure if this does what we need. But for now it fixes the tests
Diffstat (limited to 'app/assets/javascripts/leap.js')
-rw-r--r--app/assets/javascripts/leap.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/assets/javascripts/leap.js b/app/assets/javascripts/leap.js
index 94e602d..c8fbcf5 100644
--- a/app/assets/javascripts/leap.js
+++ b/app/assets/javascripts/leap.js
@@ -5,3 +5,5 @@
function alert_message(msg) {
$('#messages').append('<div class="alert alert-error"><a class="close" data-dismiss="alert">×</a><span>'+msg+'</span></div>');
}
+
+ClientSideValidations.formBuilders['SimpleForm::FormBuilder'].wrappers.bootstrap = ClientSideValidations.formBuilders['SimpleForm::FormBuilder'].wrappers["default"];