Adds in same workaround as other trees like DataTypes & DocTypes where Folders/Containers set an inline piece of JS that does nothing & returns

This commit is contained in:
Warren Buckley
2017-01-26 11:32:13 +00:00
parent f3e78e990f
commit 2465eb233e
3 changed files with 18 additions and 0 deletions

View File

@@ -49,5 +49,11 @@ namespace Umbraco.Web.Trees
{
base.OnRenderFileNode(ref treeNode);
}
protected override void OnRenderFolderNode(ref TreeNode treeNode)
{
//TODO: This isn't the best way to ensure a noop process for clicking a node but it works for now.
treeNode.AdditionalData["jsClickCallback"] = "javascript:void(0);";
}
}
}