From a3b132886a824bcd4df80481837041a42ba62857 Mon Sep 17 00:00:00 2001 From: Arlen Johnson Date: Mon, 30 Sep 2024 11:44:39 -0400 Subject: [PATCH] Add a .nospin class to all on-page cake error and warning links --- app/templates/element/javascript.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/templates/element/javascript.php b/app/templates/element/javascript.php index de77d2194..80510a242 100644 --- a/app/templates/element/javascript.php +++ b/app/templates/element/javascript.php @@ -287,8 +287,10 @@ $('table.index-table.bulk-edit-mode .form-check-input').prop('checked', false); } }); - + // Add a .nospin class to all on-page cake error and warning links + $(".cake-error a").addClass('nospin'); + // Add loading animation when a form is submitted, when any item with a "spin" class is clicked, // or on any anchor tag lacking the .nospin class. We do not automatically add this to buttons // because they are often on-page controls. Add a "spin" class to buttons that need it.