Fixes: U4-4054 Multinode Treepicker datatype - selecting a start node sends to content section
This commit is contained in:
@@ -5,6 +5,15 @@ angular.module('umbraco')
|
||||
|
||||
function($scope, dialogService, entityResource, $log, iconHelper){
|
||||
|
||||
if (!$scope.model) {
|
||||
$scope.model = {};
|
||||
}
|
||||
if (!$scope.model.value) {
|
||||
$scope.model.value = {
|
||||
type: "content"
|
||||
};
|
||||
}
|
||||
|
||||
if($scope.model.value.id && $scope.model.value.type !== "member"){
|
||||
var ent = "Document";
|
||||
if($scope.model.value.type === "media"){
|
||||
|
||||
@@ -24,20 +24,7 @@
|
||||
<a href ng-click="openContentPicker()" prevent-default>
|
||||
<localize key="general_choose">Choose</localize>...
|
||||
</a>
|
||||
<!--
|
||||
<a href ng-click="showSearch = true"> Or search</a>-->
|
||||
</li>
|
||||
<!--
|
||||
<li ng-show="showSearch">
|
||||
<input type="text"
|
||||
ng-model="model.value.query"
|
||||
class="umb-textstring"
|
||||
placeholder="Enter query">
|
||||
|
||||
<input type="radio" ng-model="model.value.scope" value="global"> Global
|
||||
<input type="radio" ng-model="model.value.scope" value="current"> Current
|
||||
<a href ng-click="showSearch = false"> ...Or pick a node</a>
|
||||
</li>-->
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user