[open-ils-commits] r8028 -
trunk/Open-ILS/xul/staff_client/server/cat
svn at svn.open-ils.org
svn at svn.open-ils.org
Wed Nov 7 09:25:06 EST 2007
Author: phasefx
Date: 2007-11-07 09:09:23 -0500 (Wed, 07 Nov 2007)
New Revision: 8028
Modified:
trunk/Open-ILS/xul/staff_client/server/cat/z3950.js
Log:
don't assume we found an element by id
Modified: trunk/Open-ILS/xul/staff_client/server/cat/z3950.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/cat/z3950.js 2007-11-07 14:02:47 UTC (rev 8027)
+++ trunk/Open-ILS/xul/staff_client/server/cat/z3950.js 2007-11-07 14:09:23 UTC (rev 8028)
@@ -294,11 +294,11 @@
var obj = this;
var x = obj.creds.services[service].default_attr;
if (x) {
- document.getElementById(x+'_input').focus();
+ var xx = document.getElementById(x+'_input'); if (xx) xx.focus();
} else {
var y;
for (var i in obj.services[service].attr) { y = i; }
- document.getElementById(y+'_input').focus();
+ var xx = document.getElementById(y+'_input'); if (xx) xx.focus();
}
},
More information about the open-ils-commits
mailing list