Skip to content

Commit

Permalink
Fix for only external javascripts to be done manually
Browse files Browse the repository at this point in the history
  • Loading branch information
cykod committed Sep 30, 2010
1 parent 59a496e commit 0e428fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/helpers/page_helper.rb
Expand Up @@ -8,7 +8,7 @@ def webiva_javascript_tags(js_includes,js_header)
if js_header; js_includes ||= []; js_includes += js_header; end

js_includes.uniq.each do |js|
if js.to_s[0] != '/'
if js.to_s[0..3] == 'http'
concat(" <script src=\"#{vh js}\" type='text/javascript'></script>\n")
else
concat(" " + javascript_include_tag(js) + "\n")
Expand Down

0 comments on commit 0e428fd

Please sign in to comment.