From e6428ef1d96247cfa88d81e69b2b6f597da3bd87 Mon Sep 17 00:00:00 2001 From: Sam Minnee Date: Thu, 15 Oct 2009 22:41:01 +0000 Subject: [PATCH] BUGFIX: Fixed link generation in CTF default action (from r89026) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@89213 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- javascript/ComplexTableField.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/javascript/ComplexTableField.js b/javascript/ComplexTableField.js index 4d8143583..a91cbf046 100755 --- a/javascript/ComplexTableField.js +++ b/javascript/ComplexTableField.js @@ -20,7 +20,7 @@ ComplexTableField.prototype = { if(defaultAction) { rules['#'+this.id+' table.data tbody td'] = { onclick: function(e) { - var link = $$('.'+defaultAction, Event.element(e).parentNode)[0].getAttribute('href'); + var link = $$('.'+defaultAction, Event.element(e).parentNode)[0].href; this.openPopup(null, link); return false; }.bind(this)