From 88dc73cd6676de9bde8a9000311ff4c3cdbdfe39 Mon Sep 17 00:00:00 2001 From: Sebastiaan Janssen Date: Thu, 10 Jan 2013 07:29:04 -0100 Subject: [PATCH] Fix the unpublished/pendinchanges/published display --- .../umbraco/Trees/BaseContentTree.cs | 9 +++++++-- .../umbraco.presentation/umbraco/Trees/XmlTree.cs | 7 +------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/Umbraco.Web/umbraco.presentation/umbraco/Trees/BaseContentTree.cs b/src/Umbraco.Web/umbraco.presentation/umbraco/Trees/BaseContentTree.cs index f343f4adbe..f2c267f8e4 100644 --- a/src/Umbraco.Web/umbraco.presentation/umbraco/Trees/BaseContentTree.cs +++ b/src/Umbraco.Web/umbraco.presentation/umbraco/Trees/BaseContentTree.cs @@ -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; } diff --git a/src/Umbraco.Web/umbraco.presentation/umbraco/Trees/XmlTree.cs b/src/Umbraco.Web/umbraco.presentation/umbraco/Trees/XmlTree.cs index 314a5363ed..38eaca32c0 100644 --- a/src/Umbraco.Web/umbraco.presentation/umbraco/Trees/XmlTree.cs +++ b/src/Umbraco.Web/umbraco.presentation/umbraco/Trees/XmlTree.cs @@ -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; } } ///