adding clarifying comments because this was confusing me and timeless - comments only, does not affect product

This commit is contained in:
alecf%netscape.com 2000-07-18 04:21:28 +00:00
parent fb0470cf83
commit ebb911891d

View File

@ -161,8 +161,14 @@ function createSearchRow(index, scope, searchTerm)
gSearchRowContainer.appendChild(searchrow);
searchTermElement.searchScope = scope;
// the search term will initialize the searchTerm element, including
// .booleanAnd
if (searchTerm)
searchTermElement.searchTerm = searchTerm;
// here, we don't have a searchTerm, so it's probably a new element -
// we'll initialize the .booleanAnd from the existing setting in
// the UI
else
searchTermElement.booleanAnd = getBooleanAnd();