Fixes U4-4264 while we wait for angularification.

This commit is contained in:
Lars-Erik Aabech
2014-05-20 15:05:45 +02:00
parent 2926a79c3f
commit 8a4e39a999

View File

@@ -67,15 +67,22 @@ namespace umbraco.settings
if (!IsPostBack)
{
var path = BuildPath(currentItem);
ClientTools
.SetActiveTreeType(TreeDefinitionCollection.Instance.FindTree<loadDictionary>().Tree.Alias)
.SyncTree(helper.Request("id"), false);
.SyncTree(path, false);
}
Panel1.Controls.Add(p);
}
private string BuildPath(cms.businesslogic.Dictionary.DictionaryItem current)
{
var parentPath = current.IsTopMostItem() ? "" : BuildPath(current.Parent) + ",";
return parentPath + current.id;
}
void save_Click(object sender, EventArgs e)
{
foreach (TextBox t in languageFields)