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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user