From 66b97842f46286d750befbd788595a8bb97ca861 Mon Sep 17 00:00:00 2001 From: Sanj Date: Mon, 21 Feb 2011 13:28:19 +0100 Subject: [PATCH] href bug, remove some buttons --- padmaTexts/static/css/text.css | 5 ++++ padmaTexts/static/js/views/sidebar.js | 3 ++- padmaTexts/templates/text_embed.html | 39 +++++++++++---------------- 3 files changed, 23 insertions(+), 24 deletions(-) diff --git a/padmaTexts/static/css/text.css b/padmaTexts/static/css/text.css index b930998..907cdae 100644 --- a/padmaTexts/static/css/text.css +++ b/padmaTexts/static/css/text.css @@ -137,6 +137,11 @@ p { overflow-y: auto; } +.padmaContributor { + font-style: italic; + font-size: 9px; +} + .padmaViewer { position: relative; width: 360px; diff --git a/padmaTexts/static/js/views/sidebar.js b/padmaTexts/static/js/views/sidebar.js index c134eee..326a7c3 100644 --- a/padmaTexts/static/js/views/sidebar.js +++ b/padmaTexts/static/js/views/sidebar.js @@ -178,8 +178,9 @@ function setupPadmaLink(videoObj, data) { for (var i=0; i < thisTrackLayers.length; i++) { var thisTrack = thisTrackLayers[i]; var thisHtml = ''; - thisHtml += "" + thisTrack.creator + ":"; thisHtml += " " + thisTrack.value_html + ""; + thisHtml += "
"; + thisHtml += " -" + thisTrack.creator + ":"; thisHtml += "

"; annotHtml += thisHtml; } diff --git a/padmaTexts/templates/text_embed.html b/padmaTexts/templates/text_embed.html index 01bcaa3..c3a2f1f 100644 --- a/padmaTexts/templates/text_embed.html +++ b/padmaTexts/templates/text_embed.html @@ -20,21 +20,23 @@ $(function() { } $('a').each(function() { var t = $(this); - var href = t.attr("href"); - if (href.indexOf("http://maps.google.com") != -1) { - if (t.data("mapLoaded")) { - return false; + if (t.attr("href") != undefined) { + var href = t.attr("href"); + if (href.indexOf("http://maps.google.com") != -1) { + if (t.data("mapLoaded")) { + return false; + } + var embedUrl = href + "&output=embed"; + var iframe = $('