Fixes: U4-3661 Unable to Create Color Picker DataType & U4-3645 Media Picker Umbraco 7 can select multiple

This commit is contained in:
Shannon
2013-11-25 11:58:01 +11:00
parent f916a6bc18
commit cafeb6d8c6
2 changed files with 3 additions and 3 deletions

View File

@@ -22,7 +22,7 @@ function dataTypeResource($q, $http, umbDataFormatter, umbRequestHelper) {
* alert('its gone!');
* });
* </pre>
*
*
* @param {String} editorAlias string alias of editor type to retrive prevalues configuration for
* @param {Int} id id of datatype to retrieve prevalues for
* @returns {Promise} resourcePromise object.
@@ -40,7 +40,7 @@ function dataTypeResource($q, $http, umbDataFormatter, umbRequestHelper) {
"dataTypeApiBaseUrl",
"GetPreValues",
[{ editorAlias: editorAlias }, { dataTypeId: dataTypeId }])),
'Failed to retreive pre values for editor id ' + editorId);
'Failed to retreive pre values for editor alias ' + editorAlias);
},
/**

View File

@@ -8,7 +8,7 @@ angular.module('umbraco').controller("Umbraco.PropertyEditors.MediaPickerControl
function setupViewModel() {
$scope.images = [];
$scope.ids = [];
$scope.ids = [];
if ($scope.model.value) {
$scope.ids = $scope.model.value.split(',');