From b3d92c8e4d431eefe8ee85e95807a938c97bb24f Mon Sep 17 00:00:00 2001 From: Florent Bruneau Date: Tue, 8 Mar 2011 22:26:24 +0100 Subject: [PATCH] Fix url in goodies popup. Signed-off-by: Florent Bruneau --- htdocs/javascript/xorg.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/htdocs/javascript/xorg.js b/htdocs/javascript/xorg.js index 0bd885f..4837da9 100644 --- a/htdocs/javascript/xorg.js +++ b/htdocs/javascript/xorg.js @@ -132,16 +132,17 @@ function addSearchEngine() var s_img; var s_title; var s_url; + var href = this.attr('href'); for (site in goodies[type].sites) { entry = goodies[type].sites[site]; s_alt = entry.alt || ""; s_img = entry.img; s_title = entry.title || ""; - s_url = entry.url_prefix.length > 0 ? entry.url_prefix + escape(this.href) : this.href; + s_url = entry.url_prefix.length > 0 ? entry.url_prefix + escape(href) : href; text += '' + s_alt + '
'; - } + } text += 'Plus de bonus ...'; return this.overlib({ -- 2.1.4