Merge pull request #387 from lars-erik/Fix-U4-4264
Fixes U4-4264 (dictionary tree collapses) while we wait for angularification.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user