Permalink
Browse files

Fix BrowserID on login form when loaded via Ajax.

  • Loading branch information...
1 parent 0b4929f commit 2731daab396e3745b85cd4f8b58b4aa92ac8ff38 @mitchellrj committed Apr 13, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 collective/browserid/skins/browserid/browserid.js
@@ -10,12 +10,13 @@
$(function() {
// onload
- $('.browserid-login button').click(function() {
+
+ $('body').delegate('.browserid-login button', 'click', function() {
navigator.id.get(gotAssertion);
return false;
});
- $('.browserid-login input[name=js_enabled]').val('1');
+ $('body').delegate('.browserid-login input[name=js_enabled]', 'load', function() { $(this).val('1');});
});
// prevent FOUC

0 comments on commit 2731daa

Please sign in to comment.