adds editing function to media picker controller
This commit is contained in:
@@ -32,6 +32,14 @@ angular.module('umbraco').controller("Umbraco.PropertyEditors.MediaPickerControl
|
||||
$scope.sync();
|
||||
};
|
||||
|
||||
$scope.edit = function(image){
|
||||
$scope.currentImage = image;
|
||||
$scope.currentImage.crop ={};
|
||||
if(!$scope.currentImage.crop){
|
||||
//$scope.currentImage.crop = { "left": 0.31731772342645215, "top": 0.17420325244997603, "right": 0.36246473116627076, "bottom": 0.30226197981593617 };
|
||||
}
|
||||
}
|
||||
|
||||
$scope.add = function() {
|
||||
dialogService.mediaPicker({
|
||||
multiPicker: multiPicker,
|
||||
|
||||
Reference in New Issue
Block a user