Merge branch 'select-parent-on-movecopy' of https://github.com/pynej/Umbraco-CMS into pynej-select-parent-on-movecopy

Completes: U4-3920 Move/Copy/Content-Picker time saver - pre-selects current node
This commit is contained in:
Shannon
2013-12-19 11:25:54 +11:00
8 changed files with 44 additions and 1 deletions

View File

@@ -47,6 +47,13 @@ jQuery(document).ready(function() {
dataUrl: "<%#Umbraco.Core.IO.IOHelper.ResolveUrl(Umbraco.Core.IO.SystemDirectories.Umbraco)%>/webservices/TreeDataService.ashx",
serviceUrl: "<%#Umbraco.Core.IO.IOHelper.ResolveUrl(Umbraco.Core.IO.SystemDirectories.Umbraco)%>/webservices/TreeClientService.asmx/GetInitAppTreeData"});
<%if(!String.IsNullOrEmpty(this.SelectedNodePath)) {%>
setTimeout(function() {
treeApi = jQuery("#<%=ClientID%>").UmbracoTreeAPI();
treeApi.syncTree('<%=this.SelectedNodePath%>', true, true);
}, 500);
<% } %>
//add event handler for ajax errors, this will refresh the whole application
var mainTree = UmbClientMgr.mainTree();
if (mainTree != null) {