Fixes: U4-6193 Inserting an image into grid layout ignores alternative text

AltText is used for alt tag instead of caption text which is used below the media.
Ensured the altText set in the dialog is saved to the value object.
This commit is contained in:
Claus
2015-09-01 10:28:35 +02:00
parent b883c7cb11
commit 37986f0ed5
2 changed files with 3 additions and 2 deletions

View File

@@ -14,7 +14,8 @@ angular.module("umbraco")
$scope.control.value = {
focalPoint: data.focalPoint,
id: data.id,
image: data.image
image: data.image,
altText: data.altText
};
$scope.setUrl();

View File

@@ -14,7 +14,7 @@
}
}
<img src="@url" alt="@Model.value.caption">
<img src="@url" alt="@Model.value.altText">
if (Model.value.caption != null)
{