Changeset 10661
- Timestamp:
- 2005-09-28T15:17:25+12:00 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/macros/query.dm
r9668 r10661 203 203 fqf = argfqf.split(","); 204 204 num_opts = document.QueryForm.fqf[0].options.length; // assumes all have the same options 205 for (i=0; i<fqf.length; i++) \{ 205 for (i=0; i<fqf.length && i<document.QueryForm.fqf.length; i++) \{ 206 if (fqf[i] != "")\{ 206 207 for (j=0;j<num_opts;j++) \{ 207 if (fqf[i] != "" && fqf[i]== document.QueryForm.fqf[i].options[j].value) \{208 if (fqf[i]== document.QueryForm.fqf[i].options[j].value) \{ 208 209 document.QueryForm.fqf[i].options[j].selected = true; 209 210 break; 210 211 \} 211 212 \} 213 \} 212 214 \} 213 215 if (fqf.length < document.QueryForm.fqf.length) \{ // initialize remaining ones … … 311 313 // fqv - the query word/phrase text box 312 314 function initfqv() \{ 313 314 315 var i; 315 316 fqv= argfqv.split(","); 316 for (i=0; i<fqv.length ; i++) \{317 for (i=0; i<fqv.length && i<document.QueryForm.fqv.length; i++) \{ 317 318 document.QueryForm.fqv[i].value = fqv[i]; 318 319 \}
Note:
See TracChangeset
for help on using the changeset viewer.