From 754d93fa9831a9dcecbeaf4c07367b3526e6e245 Mon Sep 17 00:00:00 2001 From: erickson Date: Thu, 24 Aug 2006 18:42:13 +0000 Subject: [PATCH] added selector access sanity check git-svn-id: svn://svn.open-ils.org/ILS/trunk@5662 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/web/opac/common/js/utils.js | 1 + 1 file changed, 1 insertion(+) diff --git a/Open-ILS/web/opac/common/js/utils.js b/Open-ILS/web/opac/common/js/utils.js index 7f1976f83b..6f8fb3b4c0 100644 --- a/Open-ILS/web/opac/common/js/utils.js +++ b/Open-ILS/web/opac/common/js/utils.js @@ -199,6 +199,7 @@ function setSelectorRegex( sel, regex ) { function getSelectorVal( sel ) { if(!sel) return null; + if( sel.selectedIndex < 0 ) return null; var o = sel.options[sel.selectedIndex]; var v = o.value; if(v == null) v = o.innerHTML; -- 2.43.2