#20542 Sending initial folder structure with page rather than as an async call on load.

This commit is contained in:
Benjamin Grabkowitz
2014-03-09 12:34:43 -04:00
committed by Sebastien Ros
parent 5d2a31ffc0
commit b27e1d5c00
5 changed files with 25 additions and 42 deletions

View File

@@ -98,8 +98,9 @@ var mediaLibrarySettings = {
folderPath: '@HttpUtility.JavaScriptStringEncode(viewModel.FolderPath)',
deleteConfirmationMessage: '@HttpUtility.JavaScriptStringEncode(T("Are you sure you want to delete these media items ?").Text)',
errorMessage: '@HttpUtility.JavaScriptStringEncode(T("An unexpected error occured, please refresh the page and try again.").Text)',
antiForgeryToken: '@Html.AntiForgeryTokenValueOrchard()'
};
antiForgeryToken: '@Html.AntiForgeryTokenValueOrchard()',
childFolders: (@Display.Partial(TemplateName: "ChildFolders", Model: viewModel.ChildFoldersViewModel))['childFolders']
};
//]]>
</script>
<script type="text/html" id="media-folder-template">