summaryrefslogtreecommitdiff
path: root/underlays/javascript/ikiwiki/openid-selector
diff options
context:
space:
mode:
Diffstat (limited to 'underlays/javascript/ikiwiki/openid-selector')
-rw-r--r--underlays/javascript/ikiwiki/openid-selector/openid-jquery.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/underlays/javascript/ikiwiki/openid-selector/openid-jquery.js b/underlays/javascript/ikiwiki/openid-selector/openid-jquery.js
index 3b60827b6..f39fff842 100644
--- a/underlays/javascript/ikiwiki/openid-selector/openid-jquery.js
+++ b/underlays/javascript/ikiwiki/openid-selector/openid-jquery.js
@@ -170,11 +170,11 @@ var openid = {
},
setOpenIdUrl: function (url) {
- var hidden = document.getElementById(this.input_id);
- if (hidden != null) {
- hidden.value = url;
+ var hidden = $('#'+this.input_id);
+ if (hidden.length > 0) {
+ hidden.value = url;
} else {
- $('#openid_form').append('<input type="hidden" id="' + this.input_id + '" name="' + this.input_id + '" value="'+url+'"/>');
+ $('#openid_form').append('<input style="display:none" id="' + this.input_id + '" name="' + this.input_id + '" value="'+url+'"/>');
}
},
highlight: function (box_id) {