summaryrefslogtreecommitdiff
path: root/underlays/openid-selector/ikiwiki
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2010-05-08 02:15:04 -0400
committerJoey Hess <joey@kitenet.net>2010-05-08 02:15:04 -0400
commit541298e66892300f9d98d089c59b7ad837e49016 (patch)
treeacea3e5e4a4e572fc752b5262acae0459229fa96 /underlays/openid-selector/ikiwiki
parentb945299706bf06b70415fa1c1a91fad30aa9f179 (diff)
avoid setting cookie for promptless buttons
I think it is clearer to not have such a button appear pre-selected when entering the signin page, because that may suggest to the user they don't need to click on it, and yet they do.
Diffstat (limited to 'underlays/openid-selector/ikiwiki')
-rw-r--r--underlays/openid-selector/ikiwiki/openid/openid-jquery.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/underlays/openid-selector/ikiwiki/openid/openid-jquery.js b/underlays/openid-selector/ikiwiki/openid/openid-jquery.js
index 4dfb7420b..59a59c084 100644
--- a/underlays/openid-selector/ikiwiki/openid/openid-jquery.js
+++ b/underlays/openid-selector/ikiwiki/openid/openid-jquery.js
@@ -150,15 +150,16 @@ var openid = {
}
this.highlight(box_id);
- this.setCookie(box_id);
this.provider_id = box_id;
this.provider_url = provider['url'];
// prompt user for input?
if (provider['label']) {
+ this.setCookie(box_id);
this.useInputBox(provider);
} else {
+ this.setCookie('');
$('#openid_input_area').empty();
if (! onload) {
$('#openid_form').submit();