LP #1466173 Selfcheck Hide UI Elements Until Patron Auth user/mccanna/lp1466173_selfcheck_hide_ui_elements
authorTerran McCanna <tmccanna@georgialibraries.org>
Thu, 25 Feb 2016 21:26:46 +0000 (16:26 -0500)
committerTerran McCanna <tmccanna@georgialibraries.org>
Thu, 25 Feb 2016 21:26:46 +0000 (16:26 -0500)
Currently, there are visible elements on the lower portion of the
login screen that the patron cannot use until after authenticating.
This patch hides those elements except when the patron is authenticated.

Signed-off-by: Terran McCanna <tmccanna@georgialibraries.org>
Open-ILS/src/templates/circ/selfcheck/main.tt2
Open-ILS/web/js/ui/default/circ/selfcheck/selfcheck.js

index 22022fe..fc4dfbc 100644 (file)
@@ -8,7 +8,7 @@
 <div id='oils-selfck-top-div'>
     [% INCLUDE 'circ/selfcheck/banner.tt2' %]
 </div>
-<div id='oils-selfck-bottom-div'>
+<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>
index 303cbb9..79f2985 100644 (file)
@@ -496,6 +496,7 @@ SelfCheckManager.prototype.updateScanBox = function(args) {
  */
 SelfCheckManager.prototype.drawCircPage = function() {
 
+    openils.Util.show('oils-selfck-bottom-div');
     openils.Util.show('oils-selfck-circ-tbody', 'table-row-group');
     this.goToTab('checkout');