Changeset 26608 for extensions/oAuth/template/identification_common.tpl
- Timestamp:
- Jan 11, 2014, 12:08:40 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/oAuth/template/identification_common.tpl
r26605 r26608 28 28 function open_auth(url) { 29 29 window.open( 30 url + '&t=' + (new Date()).getTime(),30 '{$OAUTH.u_login}' + url + '&key={$OAUTH.key}', 31 31 'hybridauth_social_sign_on', 32 32 'location=0,status=0,scrollbars=0,width=800,height=500' … … 45 45 case 'OpenID': 46 46 jQuery('#openid_label').html('{'Please enter your OpenID URL'|translate|escape:javascript}'); break; 47 case 'Wordpress': case ' Flickr': case 'Steam':47 case 'Wordpress': case 'Steam': 48 48 jQuery('#openid_label').html('{'Please enter your username'|translate|escape:javascript}'); break; 49 case 'Flickr': 50 jQuery('#openid_label').html('{'Please enter your user ID'|translate|escape:javascript}'); break; 49 51 } 50 52 … … 70 72 71 73 default: 72 open_auth( '{$OAUTH.u_login}'+idp);74 open_auth(idp); 73 75 } 74 76 }); … … 93 95 } 94 96 95 open_auth(' {$OAUTH.u_login}OpenID&openid_identifier=' + encodeURI(oi));97 open_auth('OpenID&openid_identifier=' + encodeURI(oi)); 96 98 97 99 jQuery.colorbox.close(); … … 111 113 }); 112 114 115 {if not empty($OAUTH.persona_email)} 113 116 jQuery('a[href$="act=logout"]').click(function(e) { 114 117 e.preventDefault(); 115 118 navigator.id.logout(); 116 119 }); 120 {/if} 117 121 118 122 navigator.id.watch({ … … 124 128 url: '{$OAUTH.u_login}Persona', 125 129 dataType: 'json', 126 data: { assertion: assertion }, 130 data: { 131 assertion: assertion, 132 key: '{$OAUTH.key}' 133 }, 127 134 success: function(data) { 128 135 oauth_redirect(data.redirect_to);
Note: See TracChangeset
for help on using the changeset viewer.