Guest User

Untitled

a guest
Jul 20th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. $.googleAuth = {
  2. handler: function( success, json ) {
  3. // trigger more manageable jquery event
  4. $(document).trigger('googleAuth.'+ (success? 'success' : 'failure'), json);
  5. },
  6. // launches google auth popup window
  7. // for result bind to $(document).bind('googleAuth.success') or 'googleAuth.failure'
  8. popup: function() {
  9. window.open( btn.attr('href'), "googleAuthsubPopup", "status = 1, height = 500, width = 700, resizable = 1" );
  10. // possibly bind to close here to trigger 'googleAuth.close'
  11. }
  12. };
Add Comment
Please, Sign In to add comment