diff options
author | Dave Lawrence <dlawrence@mozilla.com> | 2013-01-14 23:54:21 +0100 |
---|---|---|
committer | Dave Lawrence <dlawrence@mozilla.com> | 2013-01-14 23:54:21 +0100 |
commit | aa8c9aa04a4971c8a91e05c986030695a4fdd660 (patch) | |
tree | 8c43f92ae9896a223c6411e5b0c1be9bff17118f /extensions | |
parent | 2fbeb091d9f9682c5ad45777ce81afa286b855ec (diff) | |
download | bugzilla-aa8c9aa04a4971c8a91e05c986030695a4fdd660.tar.gz bugzilla-aa8c9aa04a4971c8a91e05c986030695a4fdd660.tar.xz |
Fixed issue with login button not hiding properly on 4.2+
Diffstat (limited to 'extensions')
-rw-r--r-- | extensions/BrowserID/template/en/default/hook/account/auth/login-small-additional_methods.html.tmpl | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/extensions/BrowserID/template/en/default/hook/account/auth/login-small-additional_methods.html.tmpl b/extensions/BrowserID/template/en/default/hook/account/auth/login-small-additional_methods.html.tmpl index 2c2f98205..b14dd5d8e 100644 --- a/extensions/BrowserID/template/en/default/hook/account/auth/login-small-additional_methods.html.tmpl +++ b/extensions/BrowserID/template/en/default/hook/account/auth/login-small-additional_methods.html.tmpl @@ -1,4 +1,16 @@ [% IF Param('user_info_class').split(',').contains('BrowserID') && Param('browserid_includejs_url') %] -<img src="extensions/BrowserID/web/sign_in_orange.png" onclick="browserid_sign_in()" style="margin-bottom: -8px"> or +<script type="text/javascript"> + YAHOO.util.Event.addListener('login_link[% qs_suffix FILTER js %]','click', function () { + var login_link = YAHOO.util.Dom.get('browserid_mini_login[% qs_suffix FILTER js %]'); + YAHOO.util.Dom.removeClass(login_link, 'bz_default_hidden'); + }); + YAHOO.util.Event.addListener('hide_mini_login[% qs_suffix FILTER js %]','click', function () { + var login_link = YAHOO.util.Dom.get('browserid_mini_login[% qs_suffix FILTER js %]'); + YAHOO.util.Dom.addClass(login_link, 'bz_default_hidden'); + }); +</script> +<span id="browserid_mini_login[% qs_suffix FILTER html %]" class="bz_default_hidden"> + <img src="extensions/BrowserID/web/sign_in_orange.png" onclick="browserid_sign_in()" style="margin-bottom: -8px"> or +</span> [% END %] |