mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
MINOR Fixed getElementsByClassName() usage in AssetTableField.js (fixes #5256)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.4@101723 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
e507f9488b
commit
0e2c39593f
@ -49,7 +49,7 @@ AssetTableField.prototype = {
|
||||
var link = Event.findElement(e,"a");
|
||||
var row = Event.findElement(e,"tr");
|
||||
|
||||
var linkCount = row.getElementsByClassName('linkCount')[0];
|
||||
var linkCount = document.getElementsByClassName('linkCount', row)[0];
|
||||
if(linkCount) linkCount = linkCount.innerHTML;
|
||||
|
||||
var confirmMessage = ss.i18n._t('TABLEFIELD.DELETECONFIRMMESSAGE', 'Are you sure you want to delete this record?');
|
||||
|
Loading…
Reference in New Issue
Block a user