only show the print page when actually printing
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 17 Sep 2008 16:02:38 +0000 (16:02 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 17 Sep 2008 16:02:38 +0000 (16:02 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@10619 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/web/opac/extras/selfcheck/selfcheck.js

index 3f966ca..60646fc 100644 (file)
@@ -175,8 +175,6 @@ function selfckResetTimer() {
 function selfckLogoutPatron() {
     $('selfck-item-barcode-input').value = ''; // prevent browser caching
     $('selfck-patron-login-input').value = '';
-    hideMe($('selfck-patron-checkout-container'));
-    unHideMe($('selfck-print-queuing'));
     if(patron) {
         selfckPrint();
         setTimeout(
@@ -409,6 +407,8 @@ function selfckRenew() {
   */
 function selfckPrint() {
     for(var x in successfulItems) { // make sure we've checked out at least one item
+        hideMe($('selfck-patron-checkout-container'));
+        unHideMe($('selfck-print-queuing'));
         appendClear($('selfck-print-date'), text(new Date().toLocaleString()));
         appendClear($('selfck-print-lib-name'), text(orgUnit.name()));
         if(orgUnitAddress) {