Development

Changeset 22549

You must first sign up to be able to contribute.

Changeset 22549

Show
Ignore:
Timestamp:
09/28/09 16:47:45 (4 years ago)
Author:
fabriceb
Message:

[sfFacebookConnectPlugin] onload on facebook connect button to make the button usable from the start of the page loading without making it IE-incompatible

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • plugins/sfFacebookConnectPlugin/trunk/lib/helper/sfFacebookConnectHelper.php

    r22548 r22549  
    8989    function fb_button_click() 
    9090    { 
    91       if (typeof sf_fb == "undefined") 
    92       { 
    93         document.onload = function(){sf_fb.requireSession('.implode(',',$js_arguments).');}; 
    94       } 
    95       else 
    96       { 
    97         sf_fb.requireSession('.implode(',',$js_arguments).'); 
    98       } 
    99        
    100       return false; 
     91      FB.ensureInit(function(){sf_fb.requireSession('.implode(',',$js_arguments).');}); 
    10192    } 
    10293    //]]>