From 8195d831167ec3a9109af86b0ac3408379693610 Mon Sep 17 00:00:00 2001 From: Josh Stompro <stompro@stompro.org> Date: Fri, 13 Sep 2019 15:02:36 -0500 Subject: [PATCH] LP#1555791 - Hide Print List from checkout screen Hide the print list button from the checkout screen so customers don't learn to use that instead of logout. Signed-off-by: Josh Stompro <stompro@stompro.org> Signed-off-by: Terran McCanna <tmccanna@georgialibraries.org> Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org> --- Open-ILS/src/templates/circ/selfcheck/main.tt2 | 2 +- Open-ILS/web/js/ui/default/circ/selfcheck/selfcheck.js | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Open-ILS/src/templates/circ/selfcheck/main.tt2 b/Open-ILS/src/templates/circ/selfcheck/main.tt2 index 2fb44fdcb9..aa3c2eb88a 100644 --- a/Open-ILS/src/templates/circ/selfcheck/main.tt2 +++ b/Open-ILS/src/templates/circ/selfcheck/main.tt2 @@ -12,7 +12,7 @@ <div id='oils-selfck-bottom-div' class="hidden"> <div id='oils-selfck-content-div'> <div id='oils-selfck-content-header'> - <span><a id='oils-selfck-print-list-link' href='javascript:void(0);'><button type="button" class="self-button">[% l('Print List') %]</button></a></span> + <span><a id='oils-selfck-print-list-link' href='javascript:void(0);' class="hidden"><button type="button" class="self-button">[% l('Print List') %]</button></a></span> </div> <div id='oils-selfck-circ-page' class='hidden'> <!-- Checkout / renewal and items out interface --> diff --git a/Open-ILS/web/js/ui/default/circ/selfcheck/selfcheck.js b/Open-ILS/web/js/ui/default/circ/selfcheck/selfcheck.js index 9182e440e5..002dd346c2 100644 --- a/Open-ILS/web/js/ui/default/circ/selfcheck/selfcheck.js +++ b/Open-ILS/web/js/ui/default/circ/selfcheck/selfcheck.js @@ -562,6 +562,7 @@ SelfCheckManager.prototype.updateScanBox = function(args) { */ SelfCheckManager.prototype.drawCircPage = function() { + openils.Util.hide('oils-selfck-print-list-link'); openils.Util.show('oils-selfck-bottom-div'); openils.Util.show('oils-selfck-circ-tbody', 'table-row-group'); this.goToTab('checkout'); @@ -622,7 +623,7 @@ SelfCheckManager.prototype.updateFinesSummary = function() { SelfCheckManager.prototype.drawItemsOutPage = function() { openils.Util.hide('oils-selfck-circ-tbody'); - + openils.Util.show('oils-selfck-print-list-link'); this.goToTab('items_out'); while(this.itemsOutTbody.childNodes[0]) @@ -789,7 +790,7 @@ SelfCheckManager.prototype.drawHoldsPage = function() { // TODO add option to hid scanBox // this.updateScanBox(...) - + openils.Util.show('oils-selfck-print-list-link'); this.goToTab('holds'); this.holdTbody = dojo.byId('oils-selfck-hold-tbody'); @@ -879,6 +880,7 @@ SelfCheckManager.prototype.drawFinesPage = function() { // TODO add option to hid scanBox // this.updateScanBox(...) + openils.Util.show('oils-selfck-print-list-link'); this.goToTab('fines'); progressDialog.show(true); -- 2.11.0