Compare commits

...

2 commits

Author SHA1 Message Date
36a095145a
fix(ui): hide "Previous page" buttons alongside "Check"
Expanded the button hiding logic to also target buttons whose text starts with "Previous page", enhancing UI consistency by ensuring these buttons are not displayed at inappropriate times. This modification aligns with the desired user experience requirements.
2024-11-14 16:52:45 +01:00
99bc25c237
feat(ui): hide 'Previous page' buttons on page load
Adjusted the UI to automatically hide buttons with text starting with "Previous page" upon the page's initial loading. This change helps streamline the user interface by removing redundant navigation options, enhancing user experience.
2024-11-14 16:52:33 +01:00

View file

@ -70,10 +70,12 @@ document.addEventListener("DOMContentLoaded", function () {
hideContent(); hideContent();
}); });
// Hide any button that has a text starting with "Check" // Hide any button that has a text starting with "Check" or "Previous page"
$("button").each(function () { $("button").each(function () {
if ($(this).text().startsWith("Check")) { if ($(this).text().startsWith("Check")) {
$(this).hide(); $(this).hide();
} else if ($(this).text().startsWith("Previous page")) {
$(this).hide();
} }
}); });