From bf19c01f29a7e740f47354318629e61ad4ee5175 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Sat, 8 May 2010 16:16:38 -0400 Subject: [PATCH] use labels --- templates/openid-selector.tmpl | 5 ++++- underlays/openid-selector/ikiwiki/openid/openid-jquery.js | 6 +++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/templates/openid-selector.tmpl b/templates/openid-selector.tmpl index b4d0e314f..c12df519f 100644 --- a/templates/openid-selector.tmpl +++ b/templates/openid-selector.tmpl @@ -12,7 +12,9 @@ $(document).ready(function() {
- Select your account provider + @@ -20,6 +22,7 @@ $(document).ready(function() {
+
diff --git a/underlays/openid-selector/ikiwiki/openid/openid-jquery.js b/underlays/openid-selector/ikiwiki/openid/openid-jquery.js index bf14fd3d5..4eaa613d9 100644 --- a/underlays/openid-selector/ikiwiki/openid/openid-jquery.js +++ b/underlays/openid-selector/ikiwiki/openid/openid-jquery.js @@ -246,14 +246,14 @@ var openid = { var label = provider['label']; var style = ''; - if (label) { - html = '

' + label + '

'; - } if (provider['name'] == 'OpenID') { id = this.input_id; value = ''; style = 'background:#FFF url(wikiicons/openidlogin-bg.gif) no-repeat scroll 0 50%; padding-left:18px;'; } + if (label) { + html = ''; + } html += '' + ''; -- 2.26.2