Created
December 17, 2009 08:52
-
-
Save calavera/258632 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From f1581da3a661efc4845473ceb5364b09e13a0a99 Mon Sep 17 00:00:00 2001 | |
From: David Calavera <[email protected]> | |
Date: Thu, 17 Dec 2009 09:50:52 +0100 | |
Subject: [PATCH] include external prototype library when it's not included in the default sources | |
--- | |
views/layouts/translate.rhtml | 3 +++ | |
1 files changed, 3 insertions(+), 0 deletions(-) | |
diff --git a/views/layouts/translate.rhtml b/views/layouts/translate.rhtml | |
index 184d60a..a1500ec 100644 | |
--- a/views/layouts/translate.rhtml | |
+++ b/views/layouts/translate.rhtml | |
@@ -7,6 +7,9 @@ | |
<title><%= h(@page_title) %></title> | |
<script type="text/javascript" src="http://www.google.com/jsapi"></script> | |
+<% unless ActionView::Helpers::AssetTagHelper::JAVASCRIPT_DEFAULT_SOURCES.include?('prototype') -%> | |
+<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/prototype/1.6.1.0/prototype.js"></script> | |
+<% end -%> | |
<script type="text/javascript"> | |
google.load("language", "1"); | |
-- | |
1.6.0.4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment