SyncTree for Razor deeplink

This commit is contained in:
agrath@gmail.com
2012-06-11 11:10:42 -01:00
parent c1ce79ef97
commit 2ceb508322

View File

@@ -16,6 +16,7 @@ using System.Text.RegularExpressions;
using umbraco.cms.businesslogic.macro;
using umbraco.cms.presentation.Trees;
using umbraco.IO;
using umbraco.cms.helpers;
namespace umbraco.cms.presentation.developer
{
@@ -37,9 +38,11 @@ namespace umbraco.cms.presentation.developer
if (!IsPostBack)
{
string file = Request.QueryString["file"];
string path = DeepLink.GetTreePathFromFilePath(file);
ClientTools
.SetActiveTreeType(TreeDefinitionCollection.Instance.FindTree<loadPython>().Tree.Alias)
.SyncTree(Request.QueryString["file"], false);
.SyncTree(path, false);
}
}