vendor/plugins/facebooker/lib/facebooker/rails/facebook_url_helper.rb
# Altered to throw an error on :popup and sanitize the javascript
# for Facebook.
Altered to throw an error on :popup and sanitize the javascript
for Facebook.
Altered to throw an error on : popup and sanitize the javascript for Facebook .
def convert_options_to_javascript_with_facebooker!(html_options, url ='')
          if !respond_to?(:request_comes_from_facebook?) || !request_comes_from_facebook?
            convert_options_to_javascript_without_facebooker!(html_options,url)
   	      else
            confirm, popup = html_options.delete("confirm"), html_options.delete("popup")
            method, href = html_options.delete("method"), html_options['href']
            html_options["onclick"] = case
              when popup
                raise ActionView::ActionViewError, "You can't use :popup"
              when method 
                "#{method_javascript_function(method, url, href, confirm)}return false;"
              when confirm 
                "#{confirm_javascript_function(confirm)}return false;"
              else
                html_options["onclick"]
            end
 	  end
        end
def convert_options_to_javascript_with_facebooker! ( html_options , url = '' ) if ! respond_to? ( :request_comes_from_facebook? ) || ! request_comes_from_facebook? convert_options_to_javascript_without_facebooker! ( html_options , url ) else confirm , popup = html_options . delete ( "confirm" ) , html_options . delete ( "popup" ) method , href = html_options . delete ( "method" ) , html_options [ 'href' ] html_options [ "onclick" ] = case when popup raise ActionView :: ActionViewError , "You can't use :popup" when method "#{method_javascript_function(method, url, href, confirm)}return false;" when confirm "#{confirm_javascript_function(confirm)}return false;" else html_options [ "onclick" ] end end end
Altered to throw an error on :popup and sanitize the javascript
for Facebook.
Altered to throw an error on : popup and sanitize the javascript for Facebook .
# or maybe (confirm and method) # and only confirm
html_options
<not_specific>
url
<not_specific>