From 59d869e705209d969b23917815d08d17e5240dc5 Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Fri, 18 May 2018 17:28:46 -0400 Subject: [PATCH] javascript to toggle record selection status - checkboxes now show up only when JavaScript enabled - toggling a single record checkbox adds/removes it from temporary list - toggling the select all checkbox adds/removes all records on the page - legacy add/remove links when a patron is not logged in tweaked to always be present, but to have visibility controlled based on checkbox chanegs Signed-off-by: Galen Charlton --- Open-ILS/src/templates/opac/parts/js.tt2 | 4 + Open-ILS/src/templates/opac/parts/result/table.tt2 | 24 +++--- .../web/js/ui/default/opac/record_selectors.js | 96 ++++++++++++++++++++++ 3 files changed, 114 insertions(+), 10 deletions(-) create mode 100644 Open-ILS/web/js/ui/default/opac/record_selectors.js diff --git a/Open-ILS/src/templates/opac/parts/js.tt2 b/Open-ILS/src/templates/opac/parts/js.tt2 index 01fb9f943d..2c52ce6abb 100644 --- a/Open-ILS/src/templates/opac/parts/js.tt2 +++ b/Open-ILS/src/templates/opac/parts/js.tt2 @@ -68,6 +68,10 @@ [%- END %] +[%- IF ctx.page == 'rresult' %] + +[%-END %] + [% IF ctx.page == 'place_hold' %]