From ae03cd9373289e3baf3612e6c6c8107c7dac2d1d Mon Sep 17 00:00:00 2001 From: Sanj Date: Mon, 24 Oct 2011 01:37:50 +0100 Subject: [PATCH] ugly facebook button --- itf/static/js/insidepage.js | 3 +++ itf/templates/noel/insidepage.html | 12 +++++++++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/itf/static/js/insidepage.js b/itf/static/js/insidepage.js index 7319ca4..3f55ba2 100755 --- a/itf/static/js/insidepage.js +++ b/itf/static/js/insidepage.js @@ -18,6 +18,9 @@ $('#listLeft ul li a').live("click", function() { }, function(data) { $('#imageInside').css({'backgroundImage': 'url(' + data.main_image.thumb + ')'}); $('#textRight').text(data.title).formatTitle(); + var url = location.protocol + "//" + location.hostname + location.pathname + "?tab=" + $('.innerSelected').attr("data-slug") + "&object_id=" + objId; + var fb_url = url.replace("&", "&"); + $('#fb_like').attr("data-href", fb_url); var searchTerm = $('.searchListField').val(); var html = data.html; if (searchTerm != '') { diff --git a/itf/templates/noel/insidepage.html b/itf/templates/noel/insidepage.html index 35892a7..bbddadb 100755 --- a/itf/templates/noel/insidepage.html +++ b/itf/templates/noel/insidepage.html @@ -15,6 +15,15 @@ {% block content %} +
+ +
@@ -164,7 +173,8 @@ twitter - facebook +
+ download