Bug #2714 ยป comprofiler.html.patch
| components/com_comprofiler/comprofiler.html.php | ||
|---|---|---|
|
$('#cb_step1_form').slideDown('medium');
|
||
|
$('#cb_line_checkusername').slideUp('medium');
|
||
|
if ( $('#boxLostPassword').get(0).checked ) {
|
||
|
$('#cbsendnewuspass').val('<?php echo addslashes( _UE_BUTTON_SEND_USERNAME_PASS ); ?>');
|
||
|
$('#cb_lost_username_password').slideDown('medium');
|
||
|
$('#cb_lost_username,#cb_lost_password').slideUp('medium');
|
||
|
} else {
|
||
|
$('#cbsendnewuspass').val('<?php echo addslashes( _UE_BUTTON_SEND_USERNAME ); ?>');
|
||
|
$('#cb_lost_username').slideDown('medium');
|
||
|
$('#cb_lost_password,#cb_lost_username_password').slideUp('medium');
|
||
|
}
|
||
|
} else {
|
||
|
if ( $('#boxLostPassword').get(0).checked ) {
|
||
|
$('#cbsendnewuspass').val('<?php echo addslashes( _UE_BUTTON_SEND_PASS ); ?>');
|
||
|
$('#cb_step1_form,#cb_lost_password,#cb_line_checkusername').slideDown('medium');
|
||
|
$('#cb_lost_username,#cb_lost_username_password').slideUp('medium');
|
||
|
} else {
|
||
| ... | ... | |
|
}
|
||
|
if ( $.trim( $('#checkusername').val() ) == '' ) {
|
||
|
if ( $.trim( $('#checkemail').val() ) == '' ) {
|
||
|
$('#cbsendnewuspass').val('<?php echo addslashes( _UE_BUTTON_SEND_USERNAME_PASS ); ?>').attr('disabled',true);
|
||
|
$('#cbsendnewuspass').attr('disabled',true);
|
||
|
} else {
|
||
|
$('#cbsendnewuspass').attr('disabled',false).val('<?php echo addslashes( _UE_BUTTON_SEND_USERNAME ); ?>');
|
||
|
$('#cbsendnewuspass').attr('disabled',false);
|
||
|
}
|
||
|
} else {
|
||
|
$('#cbsendnewuspass').attr('disabled',false).val('<?php echo addslashes( _UE_BUTTON_SEND_PASS ); ?>');
|
||
|
$('#cbsendnewuspass').attr('disabled',false);
|
||
|
}
|
||
|
return true;
|
||
|
} );
|
||
| ... | ... | |
|
?>
|
||
|
|
||
|
<div class="cb_form_buttons_line" id="cb_line_lostbutton">
|
||
|
<input type="submit" class="button" id="cbsendnewuspass" value="<?php echo _UE_BUTTON_SEND_USERNAME_PASS; ?>" />
|
||
|
<input type="submit" class="button" id="cbsendnewuspass" value="<?php echo ( $usernameExists ? _UE_BUTTON_SEND_USERNAME_PASS : _UE_BUTTON_SEND_PASS ); ?>" />
|
||
|
</div>
|
||
|
</div>
|
||
|
<input type="hidden" name="option" value="<?php echo $option;?>" />
|
||