-
+ 8ADDF23A31F89CB15336BCF457D1F0E494AC355C12139D4987406EEF2F443EEEF47313CB496218D222D204B5EADDB28FBB390166E5B084C3262CFF81D6B926E5
mp-wp/wp-admin/js/comment.js
(0 . 0)(1 . 39)
48437 jQuery(document).ready( function($) {
48438 jQuery('.hide-if-no-js').show();
48439 jQuery('.hide-if-js').hide();
48440
48441 var stamp = $('#timestamp').html();
48442 $('.edit-timestamp').click(function () {
48443 if ($('#timestampdiv').is(":hidden")) {
48444 $('#timestampdiv').slideDown("normal");
48445 $('.edit-timestamp').hide();
48446 }
48447 return false;
48448 });
48449
48450 $('.cancel-timestamp').click(function() {
48451 $('#timestampdiv').slideUp("normal");
48452 $('#mm').val($('#hidden_mm').val());
48453 $('#jj').val($('#hidden_jj').val());
48454 $('#aa').val($('#hidden_aa').val());
48455 $('#hh').val($('#hidden_hh').val());
48456 $('#mn').val($('#hidden_mn').val());
48457 $('#timestamp').html(stamp);
48458 $('.edit-timestamp').show();
48459 return false;
48460 });
48461
48462 $('.save-timestamp').click(function () { // crazyhorse - multiple ok cancels
48463 $('#timestampdiv').slideUp("normal");
48464 $('.edit-timestamp').show();
48465 $('#timestamp').html(
48466 commentL10n.submittedOn + ' <b>' +
48467 $( '#mm option[value=' + $('#mm').val() + ']' ).text() + ' ' +
48468 $('#jj').val() + ', ' +
48469 $('#aa').val() + ' @ ' +
48470 $('#hh').val() + ':' +
48471 $('#mn').val() + '</b> '
48472 );
48473 return false;
48474 });
48475 });