From 19dd65e5d2012834c2f4ebd808f2154ba01dea93 Mon Sep 17 00:00:00 2001 From: Matěj Cepl Date: Tue, 27 Jul 2010 15:04:15 +0200 Subject: That would be actually nice to actually return the email from this.parseMailto when we actually collected it. --- lib/bzpage.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/bzpage.js') diff --git a/lib/bzpage.js b/lib/bzpage.js index e8f11aa..7b8a437 100644 --- a/lib/bzpage.js +++ b/lib/bzpage.js @@ -492,7 +492,7 @@ BZPage.prototype.setConfigurationButton = function setConfigurationButton () { */ BZPage.prototype.parseMailto = function parseMailto(aElement) { if (aElement) { - var email = decodeURI(aElement.getAttribute("href")). + return decodeURI(aElement.getAttribute("href")). split(":")[1]; } return null; -- cgit