Bug 123550 Toggling unread column doesn't properly toggle unread counts in name column

patch by neil@parkwaycc.co.uk r=timeless sr=sspitzer a=asa
This commit is contained in:
timeless%mac.com 2002-03-12 15:34:33 +00:00
parent 9ffb53af67
commit 751ca6a031

View File

@ -654,14 +654,8 @@ function OnFolderUnreadColAttrModified(event)
if (event.attrName == "hidden")
{
var folderNameCell = document.getElementById("folderNameCell");
if (event.newValue == "true")
{
folderNameCell.setAttribute("label", "?folderTreeName");
}
else if (event.attrChange == Components.interfaces.nsIDOMMutationEvent.REMOVAL)
{
folderNameCell.setAttribute("label", "?folderTreeSimpleName");
}
var label = {"true": "?folderTreeName", "false": "?folderTreeSimpleName"};
folderNameCell.setAttribute("label", label[event.newValue]);
}
}