Permalink
Browse files

Fix Bug 757201 ; Updating signin button code for IE8's quirkiness.

  • Loading branch information...
1 parent 40938bb commit e7c9739baeb7daa0ff4040a2f6a1fad3d7e49efa @darkwing darkwing committed with groovecoder May 22, 2012
Showing with 9 additions and 8 deletions.
  1. +9 −8 media/js/mdn/init.js
View
@@ -134,8 +134,8 @@ jQuery.extend({
-
(function() {
+
var $signedOutList = $('ul.signed-out');
// Hide the signed-out block, add and wire up a BrowserID sign in button,
@@ -145,16 +145,17 @@ jQuery.extend({
$.get($signedOutList.attr('data-browserid-header-signin-html'), {
next: $.parseQuerystring().next || window.location.pathname
}, function(content) {
- $signedOutList.html(content);
- $('.toggle', $signedOutList).click(function() {
- $signedOutList.siblings(".sub-menu").slideToggle(150).removeAttr("aria-hidden");
- return false;
+ $signedOutList.html(content).each(function() {
+ $('.toggle', $(this)).click(function() {
+ $(this).siblings(".sub-menu").slideToggle(150).removeAttr("aria-hidden");
+ return false;
+ });
});
+ // Binding the signout link!
bindBrowserIDSignin();
- })
-
- $('ul.signed-out').show();
+ });
+ $signedOutList.show();
})();

0 comments on commit e7c9739

Please sign in to comment.