Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
...
Checking mergeability… Don't worry, you can still create the pull request.
  • 2 commits
  • 1 file changed
  • 0 commit comments
  • 2 contributors
Commits on Feb 22, 2012
@linuxonrails linuxonrails FIX: issue: type progress: doesn't load the image png (not exists) be…
…cause it is a GIF file. fix #16
1d5ec11
Robin Brouwer Merge pull request #17 from linuxonrails/master
fix: image load progress.png: #16
427cff9
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/gritter/helpers.rb
View
2  lib/gritter/helpers.rb
@@ -3,7 +3,7 @@ module Helpers
def add_gritter text, *args
options = args.extract_options!
options[:title] = "Notification" if options[:title].blank?
- options[:image] = ::Rails.version < "3.1" ? "/images/gritter/#{options[:image]}.png" : asset_path("#{options[:image]}.png") if %w(success warning error notice progress).include?(options[:image].to_s)
+ options[:image] = ::Rails.version < "3.1" ? "/images/gritter/#{options[:image]}.png" : asset_path("#{options[:image]}#{options[:image] == 'progress' ? '.gif' : '.png'}") if %w(success warning error notice progress).include?(options[:image].to_s)
notification = ["jQuery(function(){"]
notification.push("jQuery.gritter.add({")
notification.push("image:'#{options[:image]}',") if options[:image].present?

No commit comments for this range

Something went wrong with that request. Please try again.