Skip to content

Commit 69f92c1

Browse files
authored
To search for the column 'Thumbnail' use the attribute 'data-field' instead of the internal text (events.js)
The internal text will be equal to "Thumbnail" only if the English language is used without translation. In the case of translation, the internal text will be different !!!
1 parent be1cc5f commit 69f92c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web/skins/classic/views/js/events.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,7 @@ function initPage() {
508508
});
509509

510510
const thumb_ndx = $j('#eventTable tr th').filter(function() {
511-
return $j(this).text().trim() == 'Thumbnail';
511+
return $j(this).attr('data-field').toLowerCase().trim() == 'thumbnail';
512512
}).index();
513513
table.find('tr td:nth-child(' + (thumb_ndx+1) + ')').addClass('colThumbnail');
514514
});

0 commit comments

Comments
 (0)