Revision 4282
Added by ben leinfelder over 16 years ago
search.js | ||
---|---|---|
6 | 6 |
//alert("docId=" + docId); |
7 | 7 |
|
8 | 8 |
//do we want question metadata? |
9 |
var includeQuestions = submitFormObj.includeQuestionsRadio.checked;
|
|
9 |
var includeQuestions = submitFormObj.includeQuestions.checked; |
|
10 | 10 |
var questionIds = new Array(); |
11 | 11 |
questionIds[0] = ""; |
12 | 12 |
|
... | ... | |
29 | 29 |
for (var i=0; i < submitFormObj.length; i++) { |
30 | 30 |
var formElement = submitFormObj.elements[i]; |
31 | 31 |
if (formElement.type == "checkbox" && formElement.checked) { |
32 |
//ignore certain other checkboxes, kind of a hack |
|
33 |
if (formElement.name == "includeQuestions") { |
|
34 |
continue; |
|
35 |
} |
|
32 | 36 |
|
33 | 37 |
metadataAttributes += "<attribute index=\""; |
34 | 38 |
metadataAttributes += index; |
Also available in: Unified diff
fix the optional "include questions" checkbox so that it actually toggles the option.