Changeset 21584 for extensions/oAuth/template
- Timestamp:
- Mar 15, 2013, 6:43:07 PM (12 years ago)
- Location:
- extensions/oAuth/template
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/oAuth/template/identification_common.tpl
r20620 r21584 41 41 42 42 // click on a button 43 $("a.oauth").click(function() {44 var idp = $(this).data('idp');43 jQuery("a.oauth").click(function() { 44 var idp = jQuery(this).data('idp'); 45 45 46 46 switch(idp) { … … 49 49 {/literal} 50 50 case 'OpenID': 51 $("#openid_label").html('{'Please enter your OpenID URL'|@translate|escape:javascript}'); break;51 jQuery("#openid_label").html('{'Please enter your OpenID URL'|@translate|escape:javascript}'); break; 52 52 case 'Wordpress': case 'Flickr': 53 $("#openid_label").html('{'Please enter your username'|@translate|escape:javascript}'); break;53 jQuery("#openid_label").html('{'Please enter your username'|@translate|escape:javascript}'); break; 54 54 } 55 55 56 $("#openid_form").css('background-color', $("#the_page #content").css('background-color'));57 $("#openid_form .oauth_38px").removeClass().addClass("oauth_38px " + idp.toLowerCase());58 $("#openid_form h3").html(idp);59 $("#openid_form").data('idp', idp);56 jQuery("#openid_form").css('background-color', $("#the_page #content").css('background-color')); 57 jQuery("#openid_form .oauth_38px").removeClass().addClass("oauth_38px " + idp.toLowerCase()); 58 jQuery("#openid_form h3").html(idp); 59 jQuery("#openid_form").data('idp', idp); 60 60 {literal} 61 $.colorbox({61 jQuery.colorbox({ 62 62 inline:true, 63 63 href:"#openid_form", 64 64 initialWidth:0, 65 65 initialHeight:0, 66 onComplete:function(){ $.colorbox.resize({speed:0}) } // prevent misalignement when icon not loaded66 onComplete:function(){ jQuery.colorbox.resize({speed:0}) } // prevent misalignement when icon not loaded 67 67 }) 68 68 break; … … 77 77 }); 78 78 79 $("#openid_form").submit(function() {80 var idp = $(this).data('idp');81 var oi = $("#openid_form input[name='openid_identifier']").val();82 $("#openid_form input[name='openid_identifier']").val('');79 jQuery("#openid_form").submit(function() { 80 var idp = jQuery(this).data('idp'); 81 var oi = jQuery("#openid_form input[name='openid_identifier']").val(); 82 jQuery("#openid_form input[name='openid_identifier']").val(''); 83 83 84 $("#openid_label").removeClass('error');84 jQuery("#openid_label").removeClass('error'); 85 85 if (!oi) { 86 $("#openid_label").addClass('error');86 jQuery("#openid_label").addClass('error'); 87 87 return false; 88 88 } … … 95 95 open_auth("{$OAUTH_URL}OpenID&openid_identifier="+ encodeURI(oi)); 96 96 {literal} 97 $.colorbox.close();97 jQuery.colorbox.close(); 98 98 return false; 99 99 }); 100 100 101 $("#openid_cancel").click(function() {102 $("#openid_label").removeClass('error');103 $.colorbox.close();101 jQuery("#openid_cancel").click(function() { 102 jQuery("#openid_label").removeClass('error'); 103 jQuery.colorbox.close(); 104 104 return false; 105 105 }); -
extensions/oAuth/template/identification_menubar.tpl
r20620 r21584 1 {if $id == "mbIdentification" and isset($U_LOGIN) }1 {if $id == "mbIdentification" and isset($U_LOGIN) and count($PROVIDERS)} 2 2 {if not $OAUTH_JS_LOADED} 3 3 {assign var=OAUTH_JS_LOADED value=true} -
extensions/oAuth/template/identification_page.tpl
r20620 r21584 1 {if not $OAUTH_JS_LOADED} 2 {assign var=OAUTH_JS_LOADED value=true} 3 {include file=$OAUTH_ABS_PATH|cat:'template/identification_common.tpl'} 1 {if count($PROVIDERS)} 2 {if not $OAUTH_JS_LOADED} 3 {assign var=OAUTH_JS_LOADED value=true} 4 {include file=$OAUTH_ABS_PATH|cat:'template/identification_common.tpl'} 5 {/if} 6 {html_style}{literal} 7 #oauth_wrap .oauth { 8 margin:0 2px; 9 } 10 {/literal}{/html_style} 11 12 <fieldset style="text-align:center;" id="oauth_wrap"> 13 <legend>{'Or sign in with'|@translate}</legend> 14 15 {foreach from=$PROVIDERS item=provider key=p}{strip} 16 <a href="#" class="oauth oauth_{$oauth.identification_icon} {$p|strtolower}" data-idp="{$p}" title="{$provider.name}"></a> 17 {/strip}{/foreach} 18 </fieldset> 4 19 {/if} 5 {html_style}{literal}6 #oauth_wrap .oauth {7 margin:0 2px;8 }9 {/literal}{/html_style}10 11 <fieldset style="text-align:center;" id="oauth_wrap">12 <legend>{'Or sign in with'|@translate}</legend>13 14 {foreach from=$PROVIDERS item=provider key=p}{strip}15 <a href="#" class="oauth oauth_{$oauth.identification_icon} {$p|strtolower}" data-idp="{$p}" title="{$provider.name}"></a>16 {/strip}{/foreach}17 </fieldset>
Note: See TracChangeset
for help on using the changeset viewer.