Bug #295488 --> fix regressions from Bug #195224 virtual folder properties dialog is DOA with a JS exception.

sr=bienvenu
This commit is contained in:
scott%scott-macgregor.org 2005-05-25 18:17:07 +00:00
parent d5ddbba31a
commit 2dbfe0a875
2 changed files with 6 additions and 5 deletions

View File

@ -108,10 +108,11 @@ function setupSearchRows(aSearchTerms)
{
// load the search terms for the folder
initializeSearchRows(nsMsgSearchScope.offlineMail, aSearchTerms);
gSearchLessButton.removeAttribute("disabled", "false");
if (aSearchTerms.Count() == 1)
document.getElementById("less0").setAttribute("disabled", "true");
}
else
onMore(null);
onMore(null, 0);
}
function updateOnlineSearchState()

View File

@ -68,11 +68,11 @@ function mailViewOnLoad()
dialog.nameField.value = gMailView.mailViewName;
initializeSearchRows(nsMsgSearchScope.offlineMail, gMailView.searchTerms);
if (gMailView.searchTerms.Count() > 1)
gSearchLessButton.removeAttribute("disabled", "false");
if (gMailView.searchTerms.Count() == 1)
document.getElementById("less0").setAttribute("disabled", "true");
}
else
onMore(null);
onMore(null, 0);
doEnabling();
}