src/rails_admin/ui.js in rails_admin-3.0.0.rc4 vs src/rails_admin/ui.js in rails_admin-3.0.0
- old
+ new
@@ -112,11 +112,16 @@
$(document).on("click", "#remove_filter", function (event) {
event.preventDefault();
$("#filters_box").html("");
$("hr.filters_box").hide();
- $(this).parent().siblings("input[type='search']").val("");
+ $(this).siblings("input[type='search']").val("");
$(this).parents("form").submit();
+ });
+
+ $(document).on("click", "th.header", function (event) {
+ event.preventDefault();
+ window.Turbo.visit($(this).data("href"));
});
$(document).on(
"click",
"#fields_to_export label input#check_all",