Project

General

Profile

comprofiler.html.patch

krileon, 26 October 2011 05:09 PM

View differences:

components/com_comprofiler/comprofiler.html.php
945 945
		$('#cb_step1_form').slideDown('medium');
946 946
		$('#cb_line_checkusername').slideUp('medium');
947 947
		if ( $('#boxLostPassword').get(0).checked ) {
948
			$('#cbsendnewuspass').val('<?php echo addslashes( _UE_BUTTON_SEND_USERNAME_PASS ); ?>');
948 949
			$('#cb_lost_username_password').slideDown('medium');
949 950
			$('#cb_lost_username,#cb_lost_password').slideUp('medium');
950 951
		} else {
952
			$('#cbsendnewuspass').val('<?php echo addslashes( _UE_BUTTON_SEND_USERNAME ); ?>');
951 953
			$('#cb_lost_username').slideDown('medium');
952 954
			$('#cb_lost_password,#cb_lost_username_password').slideUp('medium');
953 955
		}
954 956
	} else {
955 957
		if ( $('#boxLostPassword').get(0).checked ) {
958
			$('#cbsendnewuspass').val('<?php echo addslashes( _UE_BUTTON_SEND_PASS ); ?>');
956 959
			$('#cb_step1_form,#cb_lost_password,#cb_line_checkusername').slideDown('medium');
957 960
			$('#cb_lost_username,#cb_lost_username_password').slideUp('medium');
958 961
		} else {
......
976 979
	}
977 980
	if ( $.trim( $('#checkusername').val() ) == '' ) {
978 981
		if ( $.trim( $('#checkemail').val() ) == '' ) {
979
			$('#cbsendnewuspass').val('<?php echo addslashes( _UE_BUTTON_SEND_USERNAME_PASS ); ?>').attr('disabled',true);
982
			$('#cbsendnewuspass').attr('disabled',true);
980 983
		} else {
981
			$('#cbsendnewuspass').attr('disabled',false).val('<?php echo addslashes( _UE_BUTTON_SEND_USERNAME ); ?>');
984
			$('#cbsendnewuspass').attr('disabled',false);
982 985
		}
983 986
	} else {
984
		$('#cbsendnewuspass').attr('disabled',false).val('<?php echo addslashes( _UE_BUTTON_SEND_PASS ); ?>');
987
		$('#cbsendnewuspass').attr('disabled',false);
985 988
	}
986 989
	return true;
987 990
} );
......
1078 1081
?>
1079 1082

  
1080 1083
				<div class="cb_form_buttons_line" id="cb_line_lostbutton">
1081
					<input type="submit" class="button" id="cbsendnewuspass" value="<?php echo _UE_BUTTON_SEND_USERNAME_PASS; ?>" />
1084
					<input type="submit" class="button" id="cbsendnewuspass" value="<?php echo ( $usernameExists ? _UE_BUTTON_SEND_USERNAME_PASS : _UE_BUTTON_SEND_PASS ); ?>" />
1082 1085
				</div>
1083 1086
			</div>
1084 1087
			<input type="hidden" name="option" value="<?php echo $option;?>" />