Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $.googleAuth = {
- handler: function( success, json ) {
- // trigger more manageable jquery event
- $(document).trigger('googleAuth.'+ (success? 'success' : 'failure'), json);
- },
- // launches google auth popup window
- // for result bind to $(document).bind('googleAuth.success') or 'googleAuth.failure'
- popup: function() {
- window.open( btn.attr('href'), "googleAuthsubPopup", "status = 1, height = 500, width = 700, resizable = 1" );
- // possibly bind to close here to trigger 'googleAuth.close'
- }
- };
Add Comment
Please, Sign In to add comment