Changeset 12220
- Timestamp:
- 2006-07-13T18:58:33+12:00 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/cic-hcap/macros/extra.dm
r12218 r12220 1504 1504 document.QueryForm.q.value = ""; 1505 1505 1506 for (var i = 0; i < document.QueryForm.aqv.length; i++) \{ 1507 if (document.QueryForm.aqv[i].value != "") \{ 1508 var real_index = /aqv([0-9]+)field/.exec(document.QueryForm.aqv[i].id)[1]; 1506 for (var aqv_i = 0; aqv_i < document.QueryForm.aqv.length; aqv_i++) \{ 1507 var aqv_value = document.QueryForm.aqv[aqv_i].value; 1508 if (aqv_value != "") \{ 1509 var real_index = /aqv([0-9]+)field/.exec(document.QueryForm.aqv[aqv_i].id)[1]; 1509 1510 var combiner = "&"; 1510 1511 if (document.QueryForm.aqc[real_index].value == "or") \{ 1511 1512 combiner = "|"; 1512 1513 \} 1513 addQueryTerm(document.QueryForm.q, "[" + document.QueryForm.aqv[i].value + "]:" + document.QueryForm.aqi[real_index].value, combiner); 1514 if (document.QueryForm.aqp[real_index].value == "1") \{ 1515 aqv_value = '"' + aqv_value + '"'; 1516 \} 1517 addQueryTerm(document.QueryForm.q, "[" + aqv_value + "]:" + document.QueryForm.aqi[real_index].value, combiner); 1514 1518 \} 1515 1519 \}
Note:
See TracChangeset
for help on using the changeset viewer.