Partially fixes: U4-4479 Cropper preview in backoffice is a bit off from the actual crop

Makes the cropper card UI reset on save, ensuring changes populate
This commit is contained in:
perploug
2014-04-02 23:04:37 +02:00
parent d4b0f3c570
commit 3ea7e6fb8a

View File

@@ -87,6 +87,14 @@ angular.module('umbraco')
reader.readAsDataURL(args.files[0]);
}
});
var unsubscribe = $scope.$on("formSubmitting", function () {
$scope.done();
});
$scope.$on('$destroy', function () {
unsubscribe();
});
})
.run(function (mediaHelper, umbRequestHelper) {
if (mediaHelper && mediaHelper.registerFileResolver) {