From 541298e66892300f9d98d089c59b7ad837e49016 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Sat, 8 May 2010 02:15:04 -0400 Subject: 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. --- underlays/openid-selector/ikiwiki/openid/openid-jquery.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'underlays/openid-selector') 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(); -- cgit v1.2.3