mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-02 10:00:54 +00:00
Bug #295488 --> fix regressions from Bug #195224 virtual folder properties dialog is DOA with a JS exception.
sr=bienvenu
This commit is contained in:
parent
d5ddbba31a
commit
2dbfe0a875
@ -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()
|
||||
|
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user