Merge pull request #721 from robertjf/dev-v7

Issue U4-6734 Fix: Tweaks to TreePicker dialog for better entity support
This commit is contained in:
Shannon Deminick
2015-06-23 11:09:02 +02:00
2 changed files with 3 additions and 2 deletions

View File

@@ -26,7 +26,8 @@ angular.module("umbraco").controller("Umbraco.Dialogs.TreePickerController",
searchText = value + "...";
});
var entityType = "Document";
// Allow the entity type to be passed in but defaults to Document for backwards compatibility.
var entityType = dialogOptions.entityType ? dialogOptions.entityType : "Document";
//min / max values

View File

@@ -29,7 +29,7 @@ angular.module('umbraco')
$scope.openContentPicker =function() {
var d = dialogService.treePicker({
section: config.type,
treeAlias: config.type,
treeAlias: config.treeAlias,
multiPicker: config.multiPicker,
callback: populate
});