Mercurial > hg > soundsoftware-site
comparison app/helpers/.svn/text-base/application_helper.rb.svn-base @ 245:051f544170fe
* Update to SVN trunk revision 4993
author | Chris Cannam |
---|---|
date | Thu, 03 Mar 2011 11:42:28 +0000 |
parents | 0579821a129a |
children | eeebe205a056 cbce1fd3b1b7 |
comparison
equal
deleted
inserted
replaced
244:8972b600f4fb | 245:051f544170fe |
---|---|
892 return gravatar(email.to_s.downcase, options) unless email.blank? rescue nil | 892 return gravatar(email.to_s.downcase, options) unless email.blank? rescue nil |
893 else | 893 else |
894 '' | 894 '' |
895 end | 895 end |
896 end | 896 end |
897 | |
898 # Returns the javascript tags that are included in the html layout head | |
899 def javascript_heads | |
900 tags = javascript_include_tag(:defaults) | |
901 unless User.current.pref.warn_on_leaving_unsaved == '0' | |
902 tags << "\n" + javascript_tag("Event.observe(window, 'load', function(){ new WarnLeavingUnsaved('#{escape_javascript( l(:text_warn_on_leaving_unsaved) )}'); });") | |
903 end | |
904 tags | |
905 end | |
897 | 906 |
898 def favicon | 907 def favicon |
899 "<link rel='shortcut icon' href='#{image_path('/favicon.ico')}' />" | 908 "<link rel='shortcut icon' href='#{image_path('/favicon.ico')}' />" |
900 end | 909 end |
901 | 910 |