Skip to content

Commit 425d5b1

Browse files
tmccannasandbergja
authored andcommitted
LP2097384 OPAC Search Results - Select All
Follow up to LP2093791 where I inadvertently broke the Select All checkbox on the search results page. Release-note: Fixes broken select all button on OPAC search results. Signed-off-by: Terran McCanna <[email protected]> Signed-off-by: Jane Sandberg <[email protected]>
1 parent 634875e commit 425d5b1

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Open-ILS/web/js/ui/default/opac/record_selectors.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,10 +140,12 @@
140140
if (t = document.getElementById('mylist_delete_' + rec)) t.classList.add('hidden');
141141
}
142142

143+
/* Only relevant on the record detail page where the View Basket button exists and
144+
should only be visible if it has contents */
143145
if (mylist.length > 0) {
144-
document.getElementById('mybasket').classList.remove('hidden');
146+
document.getElementById('mybasket')?.classList?.remove('hidden');
145147
} else {
146-
document.getElementById('mybasket').classList.add('hidden');
148+
document.getElementById('mybasket')?.classList?.add('hidden');
147149
}
148150
}
149151

0 commit comments

Comments
 (0)