[open-ils-commits] r10617 - branches/rel_1_2_3/Open-ILS/web/opac/extras/selfcheck

svn at svn.open-ils.org svn at svn.open-ils.org
Wed Sep 17 12:02:15 EDT 2008


Author: erickson
Date: 2008-09-17 12:02:12 -0400 (Wed, 17 Sep 2008)
New Revision: 10617

Modified:
   branches/rel_1_2_3/Open-ILS/web/opac/extras/selfcheck/selfcheck.js
Log:
only show the print page when actually printing

Modified: branches/rel_1_2_3/Open-ILS/web/opac/extras/selfcheck/selfcheck.js
===================================================================
--- branches/rel_1_2_3/Open-ILS/web/opac/extras/selfcheck/selfcheck.js	2008-09-17 14:34:42 UTC (rev 10616)
+++ branches/rel_1_2_3/Open-ILS/web/opac/extras/selfcheck/selfcheck.js	2008-09-17 16:02:12 UTC (rev 10617)
@@ -175,8 +175,6 @@
 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 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) {



More information about the open-ils-commits mailing list