Revision 4555
Added by ben leinfelder about 16 years ago
lib/style/skins/first/search.js | ||
---|---|---|
19 | 19 |
} |
20 | 20 |
|
21 | 21 |
//TODO option for all questions vs. just one |
22 |
var questionId = submitFormObj.questionId.value; |
|
22 |
//var questionId = submitFormObj.questionId.value;
|
|
23 | 23 |
//alert("questionId=" + questionId); |
24 |
var questionIds = new Array(); |
|
25 |
questionIds[0] = questionId; |
|
26 | 24 |
|
27 | 25 |
var documentObjects = new Array(); |
28 | 26 |
var index = 0; |
... | ... | |
32 | 30 |
var documentObject = new Object(); |
33 | 31 |
documentObject.docid = submitFormObj.docid[i].value; |
34 | 32 |
|
33 |
var questionIds = new Array(); |
|
35 | 34 |
for (var z = 0; z < submitFormObj[documentObject.docid].length; z++) { |
36 | 35 |
questionIds[z] = submitFormObj[documentObject.docid][z].value; |
37 | 36 |
} |
... | ... | |
48 | 47 |
var documentObject = new Object(); |
49 | 48 |
documentObject.docid = submitFormObj.docid.value; |
50 | 49 |
|
50 |
var questionIds = new Array(); |
|
51 | 51 |
for (var z = 0; z < submitFormObj[documentObject.docid].length; z++) { |
52 | 52 |
questionIds[z] = submitFormObj[documentObject.docid][z].value; |
53 | 53 |
} |
Also available in: Unified diff
declare questionIds array for each document
http://bugzilla.ecoinformatics.org/show_bug.cgi?id=3620