Fixes: U4-4054 Multinode Treepicker datatype - selecting a start node sends to content section

This commit is contained in:
Shannon
2014-01-16 19:47:27 +11:00
parent 4b22ff3a75
commit c288734877
2 changed files with 9 additions and 13 deletions

View File

@@ -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"){

View File

@@ -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>