How to programmatically open the Account Chooser popup

478 views
Skip to first unread message

sim

unread,
Jun 7, 2012, 2:50:05 PM6/7/12
to google-iden...@googlegroups.com
Hi,
My use case is as follows:
*User tries to access a portion of the site. Since he's not logged in, a web filter redirects him to a login page where he can use the account chooser to login.*

My problem is that since I use the Javascript GITKit account chooser which launches a popup when the #navbar element is clicked. I can't seem to force that popup to show. I tried this jquery code:

$("#navbar").trigger('click');

But nothing happens. Seems to me that should work since the click event is triggered. But nothing happens. Is there a function I can call to open the account chooser without waiting for the user to click on the login button?

Thanks,

Sim


Mengcheng Duan

unread,
Jun 7, 2012, 2:54:45 PM6/7/12
to google-iden...@googlegroups.com
you can find the solution on this post 

- Mengcheng

sim

unread,
Jun 7, 2012, 3:01:14 PM6/7/12
to google-iden...@googlegroups.com
Ahhh.. thanks so much. I searched the groups first but could not find anything. 
Is there documentation on the Javascript methods for gitkit?

Mengcheng Duan

unread,
Jun 7, 2012, 3:07:15 PM6/7/12
to google-iden...@googlegroups.com
Currently no.

- Mengcheng
Reply all
Reply to author
Forward
0 new messages