Skip to content
Snippets Groups Projects
Commit 2ae3c7c0 authored by Frode Petterson's avatar Frode Petterson
Browse files

JI-1318 Fix usage of incorrect variable

parent 45621782
No related branches found
No related tags found
No related merge requests found
......@@ -258,7 +258,7 @@ ns.File.prototype.addFile = function () {
var fileHtmlString = '<a href="#" id="' + this.id + '" title="' + ns.t('core', 'changeFile') + '" class="thumbnail"';
if (this.field.description !== undefined) {
html += ' aria-describedby="' + ns.getDescriptionId(this.id) + '"';
fileHtmlString += ' aria-describedby="' + ns.getDescriptionId(this.id) + '"';
}
fileHtmlString += '><img ' +
(thumbnail.width === undefined ? '' : ' width="' + thumbnail.width + '"') +
......
......@@ -222,7 +222,7 @@ ns.widgets.image.prototype.addFile = function () {
var altText = (this.field.label === undefined ? '' : this.field.label);
var fileHtmlString = '<a href="#" id="' + this.id + '" title="' + ns.t('core', 'changeFile') + '" class="thumbnail"';
if (this.field.description !== undefined) {
html += ' aria-describedby="' + ns.getDescriptionId(this.id) + '"';
fileHtmlString += ' aria-describedby="' + ns.getDescriptionId(this.id) + '"';
}
fileHtmlString += '><img alt="' + altText + '"/></a>' +
'<a href="#" class="remove" title="' + ns.t('core', 'removeFile') + '"></a>';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment