CoreFiles by mySites.guru
comment.dev.js37 lines, 1,038 bytes, from wordpress-2.8.zip
Raw History Compare with 2.7.1
md5
ebdf0f396c101af015d57df13c8e825b
sha1
47fe7df8f8aa8eec4d531b85a5a0469693ed9e34
sha256
ef8f8c8a8f74ebdaa5747810e1da4afd8d6f8f3d533f5e0a75d59611f3f9cba2
jQuery(document).ready( function($) {

	var stamp = $('#timestamp').html();
	$('.edit-timestamp').click(function () {
		if ($('#timestampdiv').is(":hidden")) {
			$('#timestampdiv').slideDown("normal");
			$('.edit-timestamp').hide();
		}
		return false;
	});

	$('.cancel-timestamp').click(function() {
		$('#timestampdiv').slideUp("normal");
		$('#mm').val($('#hidden_mm').val());
		$('#jj').val($('#hidden_jj').val());
		$('#aa').val($('#hidden_aa').val());
		$('#hh').val($('#hidden_hh').val());
		$('#mn').val($('#hidden_mn').val());
		$('#timestamp').html(stamp);
		$('.edit-timestamp').show();
		return false;
	});

	$('.save-timestamp').click(function () { // crazyhorse - multiple ok cancels
		$('#timestampdiv').slideUp("normal");
		$('.edit-timestamp').show();
		$('#timestamp').html(
			commentL10n.submittedOn + ' <b>' +
			$( '#mm option[value=' + $('#mm').val() + ']' ).text() + ' ' +
			$('#jj').val() + ', ' +
			$('#aa').val() + ' @ ' +
			$('#hh').val() + ':' +
			$('#mn').val() + '</b> '
		);
		return false;
	});
});

The same content is in 17 releases, WordPress 2.8-beta1 to 2.9-beta-2. See them all, or every version of this file.