Flip ternary to prevent defaults being overridden from false to true.

This commit is contained in:
designagencytom
2014-11-07 09:43:46 +00:00
parent ed8cccdf5a
commit c35fa7c975

View File

@@ -63,8 +63,8 @@ function contentPickerController($scope, dialogService, entityResource, editorSt
}
//Umbraco persists boolean for prevalues as "0" or "1" so we need to convert that!
$scope.model.config.multiPicker = ($scope.model.config.multiPicker === "0" ? false : true);
$scope.model.config.showEditButton = ($scope.model.config.showEditButton === "0" ? false : true);
$scope.model.config.multiPicker = ($scope.model.config.multiPicker === "1" ? true : false);
$scope.model.config.showEditButton = ($scope.model.config.showEditButton === "1" ? true : false);
var entityType = $scope.model.config.startNode.type === "member"
? "Member"
@@ -186,4 +186,4 @@ function contentPickerController($scope, dialogService, entityResource, editorSt
});
}
angular.module('umbraco').controller("Umbraco.PropertyEditors.ContentPickerController", contentPickerController);
angular.module('umbraco').controller("Umbraco.PropertyEditors.ContentPickerController", contentPickerController);