aboutsummaryrefslogtreecommitdiff
path: root/web/lib
diff options
context:
space:
mode:
authorDavid Paleino <dapal@debian.org>2012-07-04 11:18:18 +0200
committerDavid Paleino <dapal@debian.org>2012-07-04 11:18:18 +0200
commit3fd9102b01847c816bd8c9253937b0255d200b04 (patch)
tree1b0e1236bcc3ccf52f12137568baf4ee48d64fbd /web/lib
parent8f8b7bdca803686bac1e492b18aabaa6bb655238 (diff)
downloadtaginfo-3fd9102b01847c816bd8c9253937b0255d200b04.tar
taginfo-3fd9102b01847c816bd8c9253937b0255d200b04.tar.gz
Fix code for ruby 1.9
Diffstat (limited to 'web/lib')
-rw-r--r--web/lib/javascript.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/web/lib/javascript.rb b/web/lib/javascript.rb
index 86446fa..27b9790 100644
--- a/web/lib/javascript.rb
+++ b/web/lib/javascript.rb
@@ -6,7 +6,7 @@ def javascript(url=nil, &block)
end
def javascript_tags
- @javascript.map{ |js| js.to_html }
+ @javascript.map{ |js| js.to_html }.join("\n")
end
class Javascript
@@ -23,9 +23,9 @@ class Javascript
def to_html
if @file.nil?
- %Q{ <script type="text/javascript">//<![CDATA[\n#{ @content }//]]></script>\n}
+ %Q{ <script type="text/javascript">//<![CDATA[\n#{ @content }//]]></script>}
else
- %Q{ <script type="text/javascript" src="/js/#{ @file }.js"></script>\n}
+ %Q{ <script type="text/javascript" src="/js/#{ @file }.js"></script>}
end
end