From 9af165358f70fb566ad5d1e63be320646710d3aa Mon Sep 17 00:00:00 2001 From: sanj Date: Sun, 2 Jan 2011 17:17:37 +0530 Subject: [PATCH] google map embeds --- padmaTexts/templates/text_embed.html | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/padmaTexts/templates/text_embed.html b/padmaTexts/templates/text_embed.html index 5472e83..8674820 100644 --- a/padmaTexts/templates/text_embed.html +++ b/padmaTexts/templates/text_embed.html @@ -18,6 +18,21 @@ $(function() { if ($('.imageGallery').length > 0) { $('.imageGallery a').fancybox(); } + $('a').each(function() { + var t = $(this); + var href = t.attr("href"); + if (href.indexOf("http://maps.google.com") != -1) { + var embedUrl = href + "&output=embed"; + var iframe = $('