Permalink
Browse files

Fix button

  • Loading branch information...
1 parent 5fdf4e3 commit 76159d61d67613262745bba886810ee10b80af30 @mmangino mmangino committed Feb 27, 2009
Showing with 4 additions and 4 deletions.
  1. +1 −1 facebooker.gemspec
  2. +1 −1 facebooker.gemspec.erb
  3. +1 −1 lib/facebooker/rails/helpers/fb_connect.rb
  4. +1 −1 test/rails_integration_test.rb
View
@@ -2,7 +2,7 @@
Gem::Specification.new do |s|
s.name = %q{facebooker}
- s.version = "1.0.14"
+ s.version = "1.0.15"
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["Chad Fowler", "Patrick Ewing", "Mike Mangino", "Shane Vitarana"]
View
@@ -2,7 +2,7 @@
Gem::Specification.new do |s|
s.name = %q{facebooker}
- s.version = "1.0.14"
+ s.version = "1.0.15"
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["Chad Fowler", "Patrick Ewing", "Mike Mangino", "Shane Vitarana"]
@@ -39,7 +39,7 @@ def fb_login_button(callback=nil)
end
def fb_login_and_redirect(url)
js = update_page do |page|
- page.call "FB.Connect.logoutAndRedirect",url
+ page.redirect_to url
end
content_tag("fb:login-button",nil,:onlogin=>js)
end
@@ -993,7 +993,7 @@ def test_init_fb_connect_with_features_and_body
end
def test_fb_login_and_redirect
- assert_equal @h.fb_login_and_redirect("/path"),"<fb:login-button onlogin=\"FB.Connect.logoutAndRedirect(&quot;/path&quot;);\"></fb:login-button>"
+ assert_equal @h.fb_login_and_redirect("/path"),"<fb:login-button onlogin=\"window.location.href = &quot;/path&quot;;\"></fb:login-button>"
end
def test_fb_logout_link

0 comments on commit 76159d6

Please sign in to comment.