Revision 5793
Added by ben leinfelder almost 14 years ago
index.jsp | ||
---|---|---|
393 | 393 |
$(".addCartButton").click(); |
394 | 394 |
} |
395 | 395 |
function clearForm() { |
396 |
// remember the check boxes |
|
397 |
var matchAll = $('#matchAll').attr("checked"); |
|
398 |
var strict = $('#strict').attr("checked"); |
|
399 |
|
|
396 | 400 |
// clear the form values |
397 | 401 |
$('#searchForm').get(0).reset(); |
398 | 402 |
// clear each of the tree selections |
... | ... | |
402 | 406 |
$("input.conceptValue").each(function(index) { |
403 | 407 |
$(this).val(""); |
404 | 408 |
}); |
409 |
|
|
405 | 410 |
// reload the trees |
406 | 411 |
initialize(); |
412 |
|
|
413 |
// set the saved checkbox values |
|
414 |
$('#matchAll').attr("checked", matchAll); |
|
415 |
$('#strict').attr("checked", strict); |
|
416 |
|
|
407 | 417 |
// reload the search results |
408 | 418 |
//alert($('#searchForm').get(0)); |
409 | 419 |
doSearch($('#searchForm').get(0)); |
... | ... | |
646 | 656 |
|
647 | 657 |
<tr> |
648 | 658 |
|
649 |
<td colspan="1">Match All? <input type="checkbox" name="matchAll" checked="checked"/></td> |
|
659 |
<td colspan="1"> |
|
660 |
Match All? |
|
661 |
<input type="checkbox" name="matchAll" id="matchAll" checked="checked" onchange="doSearch($('#searchForm').get(0))"/> |
|
662 |
</td> |
|
650 | 663 |
|
651 |
<td colspan="1">From same Observation? <input type="checkbox" name="strict"/></td> |
|
664 |
<td colspan="1"> |
|
665 |
From same Observation? |
|
666 |
<input type="checkbox" name="strict" id="strict" onchange="doSearch($('#searchForm').get(0))"/> |
|
667 |
</td> |
|
652 | 668 |
</tr> |
653 | 669 |
|
654 | 670 |
</table> |
Also available in: Unified diff
handle search options:
-remember the checked options when form is 'reset'
-refresh the search results when options have changed (by checking/unchecking the boxes)