use labels
parent
10a1c0feca
commit
bf19c01f29
|
@ -12,7 +12,9 @@ $(document).ready(function() {
|
||||||
|
|
||||||
<form action="<TMPL_VAR CGIURL>" method="get" id="openid_form">
|
<form action="<TMPL_VAR CGIURL>" method="get" id="openid_form">
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<legend>Select your account provider</legend>
|
<script>
|
||||||
|
$('fieldset').append("<legend>Select your account provider</legend>");
|
||||||
|
</script>
|
||||||
|
|
||||||
<input type="hidden" name="do" value="signin" />
|
<input type="hidden" name="do" value="signin" />
|
||||||
<input type="hidden" name="action" value="verify" />
|
<input type="hidden" name="action" value="verify" />
|
||||||
|
@ -20,6 +22,7 @@ $(document).ready(function() {
|
||||||
<div id="openid_btns"></div>
|
<div id="openid_btns"></div>
|
||||||
</div>
|
</div>
|
||||||
<div id="openid_input_area">
|
<div id="openid_input_area">
|
||||||
|
<label for="openid_identifier" class="block">Enter your OpenID:</label>
|
||||||
<input id="openid_identifier" name="openid_identifier" type="text" value="<TMPL_VAR OPENID_URL>"/>
|
<input id="openid_identifier" name="openid_identifier" type="text" value="<TMPL_VAR OPENID_URL>"/>
|
||||||
<input id="openid_submit" type="submit" value="Login"/>
|
<input id="openid_submit" type="submit" value="Login"/>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -246,14 +246,14 @@ var openid = {
|
||||||
var label = provider['label'];
|
var label = provider['label'];
|
||||||
var style = '';
|
var style = '';
|
||||||
|
|
||||||
if (label) {
|
|
||||||
html = '<p>' + label + '</p>';
|
|
||||||
}
|
|
||||||
if (provider['name'] == 'OpenID') {
|
if (provider['name'] == 'OpenID') {
|
||||||
id = this.input_id;
|
id = this.input_id;
|
||||||
value = '';
|
value = '';
|
||||||
style = 'background:#FFF url(wikiicons/openidlogin-bg.gif) no-repeat scroll 0 50%; padding-left:18px;';
|
style = 'background:#FFF url(wikiicons/openidlogin-bg.gif) no-repeat scroll 0 50%; padding-left:18px;';
|
||||||
}
|
}
|
||||||
|
if (label) {
|
||||||
|
html = '<label for="'+ id +'" class="block">' + label + '</label>';
|
||||||
|
}
|
||||||
html += '<input id="'+id+'" type="text" style="'+style+'" name="'+id+'" value="'+value+'" />' +
|
html += '<input id="'+id+'" type="text" style="'+style+'" name="'+id+'" value="'+value+'" />' +
|
||||||
'<input id="openid_submit" type="submit" value="Login"/>';
|
'<input id="openid_submit" type="submit" value="Login"/>';
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue