This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Form = Backbone.Form, | |
editors = Form.editors; | |
// we don't want our nested form to have a (nested) <form> tag | |
// (currently bbf includes form tags: https://github.com/powmedia/backbone-forms/issues/8) | |
// aside from being strange html to have nested form tags, it causes submission-upon-enter | |
Form.setTemplates({ | |
nestedForm: '<div class="bbf-nested-form">{{fieldsets}}</div>' | |
}); |