diff options
author | Dave Lawrence <dlawrence@mozilla.com> | 2012-06-12 17:53:19 +0200 |
---|---|---|
committer | Dave Lawrence <dlawrence@mozilla.com> | 2012-06-12 17:53:19 +0200 |
commit | 757ba9e487fb8f737fee2acffe6ef38645c83715 (patch) | |
tree | f7bf412f927806787996fbdc69f80ae1c14f0f69 /extensions/BrowserID/template/en/default/hook/account | |
parent | eac19ea6532a8c7c940f3eb14a8f98466b583d56 (diff) | |
download | bugzilla-757ba9e487fb8f737fee2acffe6ef38645c83715.tar.gz bugzilla-757ba9e487fb8f737fee2acffe6ef38645c83715.tar.xz |
- Fixed browserid small login buttons to display/hide properly when clicking Log In
Diffstat (limited to 'extensions/BrowserID/template/en/default/hook/account')
-rw-r--r-- | extensions/BrowserID/template/en/default/hook/account/auth/login-small-additional_methods.html.tmpl | 12 |
1 files changed, 11 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 26d5ff609..444bc1d14 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 @@ -30,7 +30,17 @@ function browserid_sign_in() { } }); } +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> -<img src="extensions/BrowserID/web/sign_in_orange.png" onclick="browserid_sign_in()" style="margin-bottom: -8px"> or +<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 %] |