From 9b593dcae50b4d3bddcf07697f998bfff28eb586 Mon Sep 17 00:00:00 2001 From: Luke Hudson Date: Thu, 29 Apr 2010 04:27:04 +0000 Subject: [PATCH] BUGFIX: Fix linkCount .js in AssetAdmin deleteRecord (ticket #5486) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.4@103734 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- javascript/AssetTableField.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/javascript/AssetTableField.js b/javascript/AssetTableField.js index c1f4847f..3040742b 100644 --- a/javascript/AssetTableField.js +++ b/javascript/AssetTableField.js @@ -49,7 +49,7 @@ AssetTableField.prototype = { var link = Event.findElement(e,"a"); var row = Event.findElement(e,"tr"); - var linkCount = document.getElementsByClassName('linkCount', row)[0]; + var linkCount = row.getElementsByClassName('linkCount')[0]; if(linkCount) linkCount = linkCount.innerHTML; var confirmMessage = ss.i18n._t('TABLEFIELD.DELETECONFIRMMESSAGE', 'Are you sure you want to delete this record?');