]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - underlays/javascript/ikiwiki/openid-selector/openid-jquery.js
add minified jquery.js from openid-selector svn
[git.ikiwiki.info.git] / underlays / javascript / ikiwiki / openid-selector / openid-jquery.js
index eceaddef3eee80974fc68ac2dbbaa1cb5dc7e207..f39fff842f97a5503c2b9d92e0bbc71bce865fda 100644 (file)
@@ -12,7 +12,7 @@ var providers_large = {
     },
     yahoo: {
         name: 'Yahoo',      
-        url: 'http://yahoo.com/'
+        url: 'http://me.yahoo.com/'
     },    
     aol: {
         name: 'AOL',     
@@ -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) {