X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/76f6ff5f6b437534f8778abf225e2c4398262489..1b8d2ce36b5d6098b318c5b2f75b0e2752b51ac6:/underlays/javascript/ikiwiki/openid-selector/openid-jquery.js?ds=sidebyside
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('');
+ $('#openid_form').append('');
}
},
highlight: function (box_id) {