[open-ils-commits] r15002 - branches/rel_1_6/Open-ILS/web/opac/extras/selfcheck (erickson)
svn at svn.open-ils.org
svn at svn.open-ils.org
Mon Nov 23 09:10:47 EST 2009
Author: erickson
Date: 2009-11-23 09:10:45 -0500 (Mon, 23 Nov 2009)
New Revision: 15002
Modified:
branches/rel_1_6/Open-ILS/web/opac/extras/selfcheck/selfcheck.js
branches/rel_1_6/Open-ILS/web/opac/extras/selfcheck/selfcheck.xml
Log:
pull dojo into selfcheck since it relies on opac_utils.js. treat inactive patrons as not-found
Modified: branches/rel_1_6/Open-ILS/web/opac/extras/selfcheck/selfcheck.js
===================================================================
--- branches/rel_1_6/Open-ILS/web/opac/extras/selfcheck/selfcheck.js 2009-11-23 14:10:21 UTC (rev 15001)
+++ branches/rel_1_6/Open-ILS/web/opac/extras/selfcheck/selfcheck.js 2009-11-23 14:10:45 UTC (rev 15002)
@@ -218,6 +218,13 @@
return alert(patron.textcode);
}
+
+ if(!isTrue(patron.active())) {
+ unHideMe($('selfck-patron-not-found'));
+ $('selfck-patron-login-input').select();
+ return;
+ }
+
$('selfck-patron-login-input').value = ''; // reset the input
hideMe($('selfck-patron-login-container'));
unHideMe($('selfck-patron-checkout-container'));
Modified: branches/rel_1_6/Open-ILS/web/opac/extras/selfcheck/selfcheck.xml
===================================================================
--- branches/rel_1_6/Open-ILS/web/opac/extras/selfcheck/selfcheck.xml 2009-11-23 14:10:21 UTC (rev 15001)
+++ branches/rel_1_6/Open-ILS/web/opac/extras/selfcheck/selfcheck.xml 2009-11-23 14:10:45 UTC (rev 15002)
@@ -30,6 +30,8 @@
<html xmlns='http://www.w3.org/1999/xhtml'>
<head>
+ <script type="text/javascript" src='/js/dojo/dojo/dojo.js'></script>
+
<script language='javascript' type='text/javascript'
src='<!--#echo var="OILS_OPAC_JS_HOST"-->/common/js/utils.js'></script>
<script language='javascript' type='text/javascript'
More information about the open-ils-commits
mailing list