Fix the unpublished/pendinchanges/published display

This commit is contained in:
Sebastiaan Janssen
2013-01-10 07:29:04 -01:00
parent cd0919aeeb
commit 88dc73cd66
2 changed files with 8 additions and 8 deletions

View File

@@ -112,8 +112,13 @@ function openContent(id) {
node.Icon = dd.ContentTypeIcon;
node.OpenIcon = dd.ContentTypeIcon;
}
if (!dd.Published)
node.Style.DimNode();
if (dd.Published == false)
node.Style.DimNode();
if (dd.HasPendingChanges())
node.Style.HighlightNode();
return node;
}

View File

@@ -339,12 +339,7 @@ namespace umbraco.cms.presentation.Trees
public bool? NotPublished
{
get { return m_notPublished; }
set
{
m_notPublished = value;
if (m_notPublished.HasValue && m_notPublished.Value)
this.Style.DimNode();
}
set { m_notPublished = value; }
}
/// <summary>