Changes the CreateTreeNode to ensure that a parentId is always passed in - now all tree node models have a parentId property based on the server side data. Changes the JS tree node model to not have a 'parent' property and instead changes this to a parent() method - this allows us to serialize the tree model because otherwise it has cyclical references.
This commit is contained in:
@@ -72,6 +72,7 @@ namespace Umbraco.Web.Trees
|
||||
{
|
||||
nodes.Add(CreateTreeNode(
|
||||
RecycleBinId.ToInvariantString(),
|
||||
id,
|
||||
queryStrings,
|
||||
ui.GetText("general", "recycleBin"),
|
||||
"icon-trash",
|
||||
|
||||
Reference in New Issue
Block a user