src/rails_admin/ui.js in rails_admin-3.0.0.rc vs src/rails_admin/ui.js in rails_admin-3.0.0.rc2

- old
+ new

@@ -78,12 +78,24 @@ $("form.main legend") .has("i.fa-chevron-right") .each(function () { $(this).siblings(".control-group").hide(); }); - $("[formnovalidate]").on("click", function () { - $(this).closest("form").attr("novalidate", true); - }); + $(".form-actions .extra_buttons button") + .attr("type", "button") + .on("click", function () { + var form = $(this).closest("form"); + form.append( + $("<input />") + .attr("type", "hidden") + .attr("name", $(this).attr("name")) + .attr("value", true) + ); + if ($(this).is("[formnovalidate]")) { + form.attr("novalidate", true); + } + form.trigger("submit"); + }); $.each($("#filters_box").data("options"), function () { $.filters.append(this); }); });