lib/assets/javascripts/unpoly/form.js.coffee in unpoly-rails-0.27.1 vs lib/assets/javascripts/unpoly/form.js.coffee in unpoly-rails-0.27.2

- old
+ new

@@ -124,9 +124,10 @@ options.headers = u.option(options.headers, {}) options.reveal = u.option(options.reveal, u.castedAttr($form, 'up-reveal'), true) options.cache = u.option(options.cache, u.castedAttr($form, 'up-cache')) options.restoreScroll = u.option(options.restoreScroll, u.castedAttr($form, 'up-restore-scroll')) options.origin = u.option(options.origin, $form) + options.layer = u.option(options.layer, $form.attr('up-layer'), 'auto') options.data = up.util.requestDataFromForm($form) options = u.merge(options, up.motion.animateOptions(options, $form)) hasFileInputs = $form.find('input[type=file]').length canAjaxSubmit = !hasFileInputs || u.isFormData(options.data)