Skip to content

Add a .nospin class to all on-page cake error and warning links #226

Merged
merged 1 commit into from
Sep 30, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion app/templates/element/javascript.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down